How to Animate a Character from Mixamo in Unity - Full Walkthrough

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ต.ค. 2024

ความคิดเห็น • 107

  • @L.Stefan
    @L.Stefan ปีที่แล้ว +5

    My man .. My man!!! I jumped out of my desk with happiness when I saw the animator setup. I didn't know these settings were possible and they benefit me enormously because when using the starter assets third person character you are given the X and the Y ... so this is the perfect way to fully animate that controller!

  • @JohnnySix
    @JohnnySix 8 หลายเดือนก่อน

    Really handy tutorial, this was the first one I've seen that actually helps make sense of some of the animator controls.

  • @janukickass
    @janukickass 2 ปีที่แล้ว +2

    Fixed all my problems with Mixamo Animation.
    Thank you so much Bro.

  • @stefanoluise1
    @stefanoluise1 3 ปีที่แล้ว +17

    If you have problems with jump, i.e. sometimes it takes the key pressed and sometimes it doesn't, please note that getting the input in FixedUpdate is not a good practice. Fixed update does not run every frame so it will not always get your button down. It would be better to get the input in Update and send it to FixedUpdate.

    • @TalhaRiaz197
      @TalhaRiaz197 3 ปีที่แล้ว

      yes you are Right Update is Better than FixedUpdate

    • @BBTTheKing
      @BBTTheKing 2 ปีที่แล้ว

      Thanks man, you solved my problem

  • @underatedstar
    @underatedstar ปีที่แล้ว +1

    Only just started the tutorial but instantly liked when I saw Marc Rebillet in your subscriptions lol

  • @hadescheats
    @hadescheats 2 ปีที่แล้ว +3

    Man U are the absolute best keep up the great work it helped me so much😊

  • @amdphen
    @amdphen 2 ปีที่แล้ว +4

    Thanks bro. Make more tutorials. You teach very well.

  • @GR4MPI
    @GR4MPI ปีที่แล้ว +4

    Hi, i have weird problem, when im moving mouse the horizontal axis don't work. I read my code 10+ times :D and i think i missed something else. Console registeres the horizontal axis but the player model dont move/steer. EDIT: Solved !... i didnt put player into camera

  • @michaelscottstudy
    @michaelscottstudy 2 ปีที่แล้ว +5

    23:48 why i cant drag my player to the anim like you did?

  • @ricksarkar1
    @ricksarkar1 9 หลายเดือนก่อน +1

    thank you bro i love you

  • @NiscMC
    @NiscMC 3 ปีที่แล้ว +1

    You are so underrated

  • @om2c
    @om2c 3 ปีที่แล้ว +2

    i cant jump and animation jump is not work Please Help :(

  • @softgraphic9445
    @softgraphic9445 3 ปีที่แล้ว +2

    This is good, but it's better to add the running part to it.

  • @meno437
    @meno437 2 ปีที่แล้ว +2

    Man the body is moving but i dont see the animations

  • @Black_Jay_LBS
    @Black_Jay_LBS ปีที่แล้ว

    Thank you so much it works!

  • @nastaranebrahimi6486
    @nastaranebrahimi6486 6 หลายเดือนก่อน

    this was an amazing video

  • @harukunnn4092
    @harukunnn4092 3 ปีที่แล้ว +1

    thank you so much!!

  • @peachyleona
    @peachyleona ปีที่แล้ว +1

    hello! thankyou for the tutorial!! it helps me alot mainly cuz i'm beginner :') your explanations helps me understand better but i have problem with my jump. my character can't jump. do you have tips on it?

  • @armedmule8070
    @armedmule8070 3 ปีที่แล้ว +2

    i cant seem to drag my xbot into my anim section on the player control any ideas?

  • @dwantaaji3805
    @dwantaaji3805 ปีที่แล้ว +1

    my line of code won't work, wonder which one went wrong, would you share your code please?

  • @rodneybowman6020
    @rodneybowman6020 2 ปีที่แล้ว +1

    Nice!!

  • @galberger3937
    @galberger3937 ปีที่แล้ว +1

    To add more animations to the animator i just need to download more animtions from mixamo and to do the same with the trrensiser arrows ?

  • @ikhwanmz
    @ikhwanmz 3 ปีที่แล้ว +1

    bro you should do the mobile version of character controller! im waiting for it!

  • @Zeroflex-fk3xc
    @Zeroflex-fk3xc 20 วันที่ผ่านมา

    At the player controller on the script at line 45 this.grounded);
    did you change this too ................... at line 45 |this.grounded);
    ? tell me cause it's hard to see this what it is ??

  • @betray1077
    @betray1077 2 ปีที่แล้ว

    I followed it but my character keeps glitching animation and does not move much when I move it goes back to where it was standing pls

  • @DieterSoost
    @DieterSoost 7 หลายเดือนก่อน

    Nice work, simpel and effective, but... The Character do not move forward, after Animation he fall back to start position... any idea of that ? Btw: Runs under 2022.3

    • @RapidRealityRJC
      @RapidRealityRJC 6 หลายเดือนก่อน

      when you download the animation you need to tick 'In Place'

  • @IamNeighborlee
    @IamNeighborlee 8 หลายเดือนก่อน

    Does this work for newest unity 2022.3 ? This is the simplest , easiest to follow I've seen.

  • @xTaytu
    @xTaytu ปีที่แล้ว

    After 1 sec my Character stops doing the animations. Any clues?

  • @biotest05
    @biotest05 ปีที่แล้ว

    the jump only works while moving, how do i fix that?

  • @shivangipriya4153
    @shivangipriya4153 5 หลายเดือนก่อน

    hi man, Can make a video for character FBX has a face to VRM using unity

  • @RealOhpeee
    @RealOhpeee 2 ปีที่แล้ว +3

    Can you post your codes on mediafire or something

    • @supergirl1892
      @supergirl1892 ปีที่แล้ว

      He wouldn't do that...reason code has bugs....

    • @RealOhpeee
      @RealOhpeee ปีที่แล้ว

      @@supergirl1892 ahhh bro

  • @JJWrRaider
    @JJWrRaider 2 ปีที่แล้ว

    I have a couple errors and im unable to access playmode becuase player controller doesnt contain grounded and vector3 doesent contain normilize and keycode doesnt contain space

  • @serhataslan454
    @serhataslan454 2 ปีที่แล้ว

    Can someone help me about this code my character just strafes through the right and doesnt jump

  • @Blue.Studio.
    @Blue.Studio. ปีที่แล้ว

    when i put anim it odes not work can some one help me pls

  • @wanbungus
    @wanbungus 2 ปีที่แล้ว

    all my models work in the animator, but in the game when i play only the idle shows and then my character falls over. how do i fix?

  • @TalhaRiaz197
    @TalhaRiaz197 3 ปีที่แล้ว

    When I release my Button my Character came to 0 position why pleae Help

  • @Hr_Status
    @Hr_Status หลายเดือนก่อน +1

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class PlayerControl : MonoBehaviour
    {
    public Animator anim;
    private Rigidbody rb;
    public LayerMask layerMask;
    public bool grounded;
    // Start is called before the first frame update
    void Start()
    {
    this.rb = GetComponent();
    }
    // Update is called once per frame
    private void FixedUpdate()
    {
    Grounded();
    Move();
    Jump();
    }
    private void Jump()
    {
    if (Input.GetKeyDown(KeyCode.Space) && this.grounded)
    {
    this.rb.AddForce(Vector3.up * 4, ForceMode.Impulse);
    }
    }
    private void Grounded()
    {
    if (Physics.CheckSphere(this.transform.position + Vector3.down, 0.2f, layerMask))
    {
    this.grounded = true;
    }
    else {
    this.grounded = false;

    }
    this.anim.SetBool("jump", this.grounded);
    }
    private void Move()
    {
    float verticalAxis = Input.GetAxis("Vertical");
    float horizontalAxis = Input.GetAxis("Horizontal");
    Vector3 movement = this.transform.forward * verticalAxis + this.transform.right * horizontalAxis;
    movement.Normalize();
    this.transform.position += movement * 0.04f;
    this.anim.SetFloat("vertical",verticalAxis);
    this.anim.SetFloat("horizontal",horizontalAxis);
    }
    }

  • @GR4MPI
    @GR4MPI ปีที่แล้ว

    Hello again, so i made my character crouch jump fall and die, but im still having problem that when you stay idle and then a -> d or inverted the animation is not smooth and it skips the idle part, the movement blend tree is the same as yours so my question is how to fix this

  • @joeyestrada9071
    @joeyestrada9071 10 หลายเดือนก่อน

    I set it up just like you, but in the inspector when I go to see the movements of the character he's stuck in the ground and not moving. Anyone know how to fix this?

    • @RobertMarshall-xr3ss
      @RobertMarshall-xr3ss 10 หลายเดือนก่อน

      Try these forums, might have something you will find useful

  • @AY-js3nx
    @AY-js3nx 2 ปีที่แล้ว

    hi i have a error that says parameter jump does not exist its the same with vertical and horizontal can you help pls?

  • @TieuLongLafrance-zq6ew
    @TieuLongLafrance-zq6ew 6 หลายเดือนก่อน

    where do we can find your code?

  • @SwayamPandey-v1q
    @SwayamPandey-v1q 8 หลายเดือนก่อน

    I have a strange issue here where the model will not stop jumping no matter what, is there a way to fix this?

    • @forgottendemon3429
      @forgottendemon3429 6 หลายเดือนก่อน

      ok so he does fix it in the video however in the lower part of the private void Grounded() place an "!" before "this.grounded"

  • @guitarist1274
    @guitarist1274 2 ปีที่แล้ว

    Hey can you help me?🥺 how can i download unity 3d? Or noesis?🥺

  • @JulianFlaco85
    @JulianFlaco85 ปีที่แล้ว

    "Assets\PlayerController.cs(57,52): error CS1513: } expected"
    what do i fix here?

  • @skyclaw255
    @skyclaw255 3 ปีที่แล้ว

    i really have a hard time to click Jump, i dont know how to fix it please help T^T

  • @gamingeditorJay
    @gamingeditorJay 2 ปีที่แล้ว

    Can You Upload Script On Google drive I'm having Problemes coding it

  • @shadowartz9968
    @shadowartz9968 2 ปีที่แล้ว +1

    im getting this error even though I followed the code to a T, any suggestions on how to fix?
    Assets/PlayerController.cs(34,18): error CS0102: The type 'Playercontroller' already contains a definition for 'Grounded'
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class Playercontroller : MonoBehaviour
    {
    public Animator anim;
    private Rigidbody rb;
    public LayerMask layerMask;
    public bool Grounded;
    // Start is called before the first frame update
    void Start()
    {
    this.rb = GetComponent();
    }
    private void FixedUpdate()
    {
    Grounded();
    Jump();
    Move();
    }
    private void Jump()
    {
    if(input.GetKeyDown(KeyCode.Space) && this.grounded)
    {
    this.rb.AddForce(Vector3.up * 4, ForceMode.Impulse);
    }
    }
    private void Grounded()
    {
    if(Physics.CheckSphere(this.transform.position + Vector3.down, 0.2f, layerMask))
    {
    this.grounded = true;
    }
    else
    {
    this.grounded = false;
    }
    this.anim.SetBool("jump", this.grounded);
    }
    private void Move()
    {
    float verticalAxis = Input.GetAxis("Vertical");
    float horizontalAxis = Input.GetAxis("Horizontal");
    Vector3 movement = this.transform.forward * verticalAxis + this.transform.right * horizontalAxis;
    movement.Normalize();
    this.transform.position += movement * 0.04f;
    this.anim.SetFloat("vertical", verticalAxis);
    this.anim.SetFloat("horizontal", horizontalAxis);
    }
    }

  • @aryantyagi100
    @aryantyagi100 2 ปีที่แล้ว

    do you need to have an avatar?

  • @celianbrun8842
    @celianbrun8842 ปีที่แล้ว

    hi, how can we implement a run system to this script ?

  • @Skrueeuen
    @Skrueeuen ปีที่แล้ว

    How can i make the animations play on another controller?

  • @kingshukbhowmick8343
    @kingshukbhowmick8343 2 ปีที่แล้ว

    Hii sir , i am facing a CSO246 THE TYPE OR NAMESPACE NAME PLAYCONTROLLER CANT BE FOUND... ANY SOLUTION ?

    • @GR4MPI
      @GR4MPI ปีที่แล้ว

      instead of PlayController try PlayerController

  • @dienmai3251
    @dienmai3251 2 ปีที่แล้ว

    I have jump issue..cannot jump

    • @wanbungus
      @wanbungus 2 ปีที่แล้ว

      i have jump issue… i cannot stop jumping

  • @cahydra
    @cahydra 2 ปีที่แล้ว

    My character is floating above ground whenever I play an animation, mercy help

    • @harukunnn4092
      @harukunnn4092 2 ปีที่แล้ว

      Turn on gravity on the game objects rigid body

    • @cahydra
      @cahydra 2 ปีที่แล้ว

      @@harukunnn4092 Its the animation that was floating not the gameObject itself, i sort of fixed it by chaning the root y offset on the anim

  • @Gnagichetty96
    @Gnagichetty96 2 ปีที่แล้ว

    help :-
    Operator '*' cannot be applied to operands of type 'Vector3' and 'double'

  • @unbelievablenoye7178
    @unbelievablenoye7178 3 ปีที่แล้ว

    Hi, i have a problem with rigidbody and plane collider, so when i play the game Player falls troughthout the plane, can you help me?

  • @mygamingimagination8173
    @mygamingimagination8173 3 ปีที่แล้ว +1

    This is a great tutorial. i was wondering if you know how to make the camera first person though. i cant find any tutorials on how to make only the head move with the camera.

    • @PhilippDominicSiedler
      @PhilippDominicSiedler  3 ปีที่แล้ว +2

      Yes, if you have setup the camera in the same way as I, that is, in the same hierarchical way, you just move the camera to your desired position, on your case head height, and that’s it.

    • @imneetstudio4391
      @imneetstudio4391 2 ปีที่แล้ว

      Ya, anda bisa ubah koordinat menuju posisi kepala karakter anda

  • @steelmorgan5775
    @steelmorgan5775 3 ปีที่แล้ว

    When I type in some of the stuff on Microsoft studio it doesn't show up like fixed update. Do you know how I can fix this? im at 17:22 seconds into the tutorial

    • @steelmorgan5775
      @steelmorgan5775 3 ปีที่แล้ว

      I also dont have the cube symbol like the one fixed update has and get componet do you know how I could get them?

    • @PhilippDominicSiedler
      @PhilippDominicSiedler  3 ปีที่แล้ว +1

      @@steelmorgan5775 Go to Edit > Preferences > External Tools > External Script Editor and change to Visual Studio, in my case for example: Visual Studio Community 2019

    • @steelmorgan5775
      @steelmorgan5775 3 ปีที่แล้ว

      @@PhilippDominicSiedler thank you so much

  • @soulminds
    @soulminds 3 ปีที่แล้ว

    Bro Make one with mobile UI

  • @nderscore8
    @nderscore8 3 ปีที่แล้ว

    At 9:38 i don't have conditions true and false, only greater and less. When i put space..parameter type "jump" does not match.
    Please help

    • @choledocholithiasis
      @choledocholithiasis 2 ปีที่แล้ว

      make sure "jump" perfectly capitalised in both the script and the animator

    • @nderscore8
      @nderscore8 2 ปีที่แล้ว

      @@choledocholithiasis Now character is jumping but without animation..tried to rewrite code, but same problem, thanks !!

    • @choledocholithiasis
      @choledocholithiasis 2 ปีที่แล้ว

      @@nderscore8 So it's jumping now but there's no animation?

    • @nderscore8
      @nderscore8 2 ปีที่แล้ว

      @@choledocholithiasis yes, is jumping but without animation

    • @choledocholithiasis
      @choledocholithiasis 2 ปีที่แล้ว

      @@nderscore8 Are you sure you've set up all the booleans in the transitions right?

  • @ТулинаПанева-Йорданова
    @ТулинаПанева-Йорданова 2 ปีที่แล้ว

    InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings.
    UnityEngine.Input.GetKeyDown (UnityEngine.KeyCode key) (at :0)
    PlayerControllerYbot.Jump () (at Assets/PlayerControllerYbot.cs:29)
    PlayerControllerYbot.FixedUpdate () (at Assets/PlayerControllerYbot.cs:23)

  • @kavindu3443
    @kavindu3443 3 ปีที่แล้ว

    Hello we can use mixamo character in our game and publish commercially ?

    • @PhilippDominicSiedler
      @PhilippDominicSiedler  3 ปีที่แล้ว

      Probably need to figure that out in the terms and conditions on Adobe/mixamo

    • @jasond5489
      @jasond5489 3 ปีที่แล้ว +4

      Yes, their site says the following (copy pasted):
      You can use both characters and animations royalty free for personal, commercial, and non-profit projects including:
      Incorporating characters into illustrations and graphic art
      3D printing characters
      Creating films
      Creating video games

    • @PhilippDominicSiedler
      @PhilippDominicSiedler  3 ปีที่แล้ว

      @@jasond5489 Good to know, thanks for sharing :)

  • @sooryas3821
    @sooryas3821 3 ปีที่แล้ว

    Its useful. But I have some issues from this tutorial. When I press jump, the xbot position is increase. I tried many of options and scripts. But nothing changes.

    • @PhilippDominicSiedler
      @PhilippDominicSiedler  3 ปีที่แล้ว

      Is gravity enabled on the rigid body?

    • @sooryas3821
      @sooryas3821 3 ปีที่แล้ว

      @@PhilippDominicSiedler yeah.

    • @sooryas3821
      @sooryas3821 3 ปีที่แล้ว

      @@PhilippDominicSiedler If you don't mind, can you send your mail id for share my clip.

  • @Stealthy8Gaming
    @Stealthy8Gaming 2 ปีที่แล้ว

    19:09

  • @ai_stories_daily_tv
    @ai_stories_daily_tv ปีที่แล้ว

    12:54

  • @se5d
    @se5d ปีที่แล้ว

    I guess you are to F good to post that script on a cloud. and all 42.000 have to retype it manually

    • @PhilippDominicSiedler
      @PhilippDominicSiedler  ปีที่แล้ว

      😅 - you are actually right, I will try to find it and upload! However, a lot of people lean by doing (including me).

  • @imroul1123
    @imroul1123 2 ปีที่แล้ว

    Do you have discord account, i want to ask you some question, i make my project with all step but my animation is be risked

  • @bababooey1492
    @bababooey1492 2 ปีที่แล้ว

    Assets\PlayerController.cs(56, 105): error CS1002: ; expected

    • @PhilippDominicSiedler
      @PhilippDominicSiedler  2 ปีที่แล้ว +1

      your missing a ";"

    • @bababooey1492
      @bababooey1492 2 ปีที่แล้ว +1

      @@PhilippDominicSiedler You can please put in the description a download link for PlayerController