Simultaneous Animation for a GameObject - Unity3D
Posted
by
Fahim Ali Zain
on Game Development
See other posts from Game Development
or by Fahim Ali Zain
Published on 2014-07-13T13:28:38Z
Indexed on
2014/08/18
16:48 UTC
Read the original article
Hit count: 389
Its my second week with Unity. I am doing a 2D game and I have a small GameObject which should change its sprite along with following a definite path defined in Animation Curves.
I did both of them in separate .anim files since the transform animation had many keyframes, i thought it wont be good to put the '2' sprite keyframe repeatedly along side the transform keyframe.
But the problem is, I cant get it both working together at the same time. I dont want any blending because the animation is timed well already.
Also, I tried deleting the sprite change animation and tried it under script changing the SpriteRenderer.Sprite property under Update(); but it works only when the Animator component is disabled in the GameObject.
Any Solutions ? :)
© Game Development or respective owner