I've downloaded a character and some animations for a third-person game I'm making. This is the code for my character currently: Code (CSharp): using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerControl : MonoBehaviour { public CharacterController controller; //Links to the player's controller public Transform cam; public float speed; //Sets the player speed public float turnSmoothTime = 0.1f; float turnSmoothVelocity; public Animator Anim; private Vector3 playerVelocity; void Start() { Anim = GetComponent<Animator>(); } // Update is called once per frame void Update() { float horizontal = Input.GetAxisRaw("Horizontal"); //Get A and D inputs float vertical = Input.GetAxisRaw("Vertical"); //Get W and S inputs Vector3 direction = new Vector3(horizontal, 0f, vertical); //Combine the inputs into a Vector3 variable named direction if (direction.magnitude >= 0.1f) //If the direction value is greater than 0.1 (the player should be moving)... { float targetAngle = Mathf.Atan2(direction.x, direction.z) * Mathf.Rad2Deg + cam.eulerAngles.y; float angle = Mathf.SmoothDampAngle(transform.eulerAngles.y, targetAngle, ref turnSmoothVelocity, turnSmoothTime); transform.rotation = Quaternion.Euler(0f, angle, 0f); Vector3 moveDirection = Quaternion.Euler(0f, targetAngle, 0f) * Vector3.forward; controller.Move(moveDirection * speed * Time.deltaTime); //...move the player Anim.SetBool("Moving", true); } else { Anim.SetBool("Moving", false); } } } The strange thing is that in my animator tab, it shows that the animations are playing at the correct time. However in the game view, my character stays in their default pose as they move around. Does anyone know what I can do to fix this?
I had the exact same problem just now. I fixed by disabling "Can Transition To Self". You could also check this forum to see if there's a solution here: https://forum.unity.com/threads/animator-not-playing-animations.517716/