animation not playing unity

14,576

Solution 1

I Could not find any unity inspector based answer. For now, the best option I have is to create new script, and in update() check if the animation is playing. If not, play it. Very inefficient, so to whoever might stumble upon this post in the future, I suggest you try to add this.animation.play() in setting up part of the script.

Solution 2

add the animation to the main object, then animate the smaller object...

you have to put animation component to main object, then animate the small part...

it is important...

it should work

Share:
14,576
Xyzk
Author by

Xyzk

Updated on June 04, 2022

Comments

  • Xyzk
    Xyzk almost 2 years

    This appears to be such a common problem, that finding answer to my specific case is near impossible, because of the amount of noise in google or forum searches.

    I have imported object to unity from blender. This objects had smaller objects inside it. Those smaller objects have animation on them, which was created in unity. If I open the animation window (Window->Animation) and press play - I can see correct movement of an object. Animation is set to play automatically in inspector, culling type is always animate. If I play the game however, animation does not play. Why?