Hmm. Can you please send me a small project showcasing this issue you are facing with animation not playing? It would greatly help if so.
Regarding your other questions, your script will not work in editor mode, but rather only in playmode since it is using the Unity API (Start) to execute. What you can instead do to move the door, would be to simply use one of the included clips named, “Translate To” or “Translate By”, since this is exactly what those action clips are there for 🙂
Alternatively, if you want completely control, you can use the “Animate Properties” action clip, and manually keyframe the .position property of the door in time.
Let me know if these work for you.
Thanks.
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.