- Home /
Change transform of a prefab having an animation
Hello,
I'm trying to solve an issue for 2 days now. I have a prefab (Jet Plane) with an animation attached to it. I want to rotate the prefab once the animation is done using script. Problem is that I can't rotate or move the prefab as soon as there is an animation in the animator even if I never called the animation.
Flying is never called but can't rotate the game object Jet Plane using script. If I delete the state "Flying" or if put no motion on "Flying", I can move or rotate the game object Jet Plane.
Thanks for any help.
Matthieu
Answer by smoggach · Dec 09, 2014 at 02:24 PM
The easiest solution is to put your animated object inside another object and rotate that.
Your answer
Follow this Question
Related Questions
how to call the animation of prefab 0 Answers
Child Animation synced with Parrent objects Animation 0 Answers
Invalid Layer Index? 1 Answer
Animation Running Game 0 Answers