Answer the question
In order to leave comments, you need to log in
How to enable animation for an object on pressing the E button?
I have reviewed many tutorials and read answers in many forums.
But unity 5 refuses to play the object's animation on click.
I have already tried many ways but all in vain.
I already wrote a script, but unity demolished everything there and wrote it as it should,
but that didn’t work either.
Please tell me how to do it.
Answer the question
In order to leave comments, you need to log in
If you are talking about a simple animation, not an animator... Have you
tried just Play On Awake?
If it works through Play On Awake, the name was incorrectly specified.
If it still doesn't start, then look here How to play animation from code in Unity3D?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question