0
\$\begingroup\$

enter image description here

So I made an animation, but sometimes i nedd to rotate the animation, but for some reason it isnt working. I can change the rotation of the object and then click play and it works perfectly like in the gif, but if I attempt to change the rotation on runtime nothing happens. Why?

\$\endgroup\$
  • \$\begingroup\$ You can change the rotation in the animation itself if that's what you want to achieve. This is an older version link but it should apply for current version for animation editor too: docs.unity3d.com/560/Documentation/Manual/… \$\endgroup\$ – John Hamilton Dec 20 '17 at 5:41
  • \$\begingroup\$ the problem is that the rotation is dependent on an action that happens while playing. It doesnt help to set the rotation to one fixed value \$\endgroup\$ – Zarazas Dec 20 '17 at 15:38
2
\$\begingroup\$

It's probably because the actual rotation is encoded into the animation itself, overriding your changes. You can try to make the animated object a child of an empty one and rotate the parent instead. This way your should get the expected result.

\$\endgroup\$
  • \$\begingroup\$ i tried that, but it didnt work, i could change the rotation of the parent, but the child didnt roatae \$\endgroup\$ – Zarazas Dec 20 '17 at 15:36
  • \$\begingroup\$ @Zarazas impossible. Either you did not do it correctly or something else is wrong. \$\endgroup\$ – Uri Popov Dec 20 '17 at 15:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.