How to animate the object by pressing the E button?
I reviewed a lot of tutorials and read replies on many forums.
But unity 5 refuses to play the animation object by clicking.
I have tried many ways but all in vain.
Wrote already a script but unity there all tore down and wrote what he wanted
but that didn't work either.
Please tell me how to do it.
Accurate description +code of your attempts - in the Studio. Ideally, the project on the exchanger.
earline.Fad answered on June 27th 19 at 15:23
If you're talking about a simple animation , not the animator...
Just tried Play On Awake?
If you work through the Play On Awake wrong the name indicated.
If so does not start then look here How to play animations from code in Unity3D?