Forum rules - please read before posting.

Some animations don't play in Build but do in Editor

edited December 2024 in Technical Q&A

I am using Sprites Unity Complex animations. All works fine, even in the build I created last week. But this week, when I build the game, some of the animations do not play. Or rather, they do play, and the action lists get executed, but the character disappears during the animation.

I checked the Controller, deleted the transitions and remade them anew, checked the animation clips' inspectors, and ran the animations both in the Animation tab and when running the whole game in the editor. All works perfectly, and I did not find any differences from the animations that work properly. But when I build the game (does not matter if for Win or Android), a few specific animations (always the same ones) become invisible. But they all work in the version from last week, and I haven't touched them since.

Any ideas where the problem might be, please? Or what can i do to fix this?

Comments

  • Do the animations involve affecting the character / sprite's position, and do you keep the Scene window open when testing in the Editor? In my experience, this can have an effect.

    Try enabling "Always Animate" in the Animator component.

  • edited December 2024

    So it was what you suggested, thank you! It was a stupid mistake caused by inattention. At each of the problematic clip, the rig position was not at 0,0,0 and the the animation thus played outside of the picture.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.