I got this scene and want to play the second animation, so I added the animator to “player-parent” and made this graph but it does not work, do you know how I can solve this problem.
Anything with Animations / Animators / Mechanim:
Only consider the code AFTER you have done this critical step:
Always start with the Animator state machine and prove it works in isolation, no code at all.
Here’s more reading:
Otherwise…
Sounds like you wrote a bug… and that means… time to start debugging!
By debugging you can find out exactly what your program is doing so you can fix it.
Use the above techniques to get the information you need in order to reason about what the problem is.
You can also use Debug.Log(...); statements to find out if any of your code is even running. Don’t assume it is.
Once you understand what the problem is, you may begin to reason about a solution to the problem.
Remember with Unity the code is only a tiny fraction of the problem space. Everything asset- and scene- wise must also be set up correctly to match the associated code and its assumptions.
Your animator should be placed on the Model GameObject. Also, make sure you haven’t made any other modifications to the model in the scene, as it seems to no longer be a prefab.
thanks helped a lot
