xxxxxxxxxx
Unity: If an animation component is not playing when using animation.Play
1. Click on the three dots in unity editor and turn on debug mode
2. Go to your animation and turn on "Legacy"
xxxxxxxxxx
1. Check animation controller is attached to the game object
2. Check the animation loop is ticked if that is looping animation
3. Add animation to animation controller