Search Unity

Animations stuck in first frame in build

Discussion in 'Animation' started by tfgrip, Jul 5, 2018.

  1. tfgrip

    tfgrip

    Joined:
    Oct 12, 2017
    Posts:
    22
    Hello,

    we are currently working on a project that manages animations via Playable API. We had to upgrade Unity from 5.6 to 2017 (and then 2018) and we are currently experiencing issues with some animations not playing in builds.

    Everything works in editor as expected, but in builds some of the animations get stuck in what seems to be the first frame. There are some animations that are running without issue however, and we can't see any obvious difference.

    The code is taking the same code path, values seem to be set up the same as well. We're having a hard time figuring out where even to look for a problem.

    We were thinking that maybe we haven't updated from old experimental Playable API properly, but that doesn't explain why in editor animations play alright. Is there, however, some info about what has changed? We can't no longer see PlayableHandle in docs, even though the handles still exist in some way.

    Do you have any idea where to look at for a problem?

    Thank you.
     
    Last edited: Jul 6, 2018
  2. tfgrip

    tfgrip

    Joined:
    Oct 12, 2017
    Posts:
    22
    We have solved it, it wasn't an issue with playables per se. Certain constants were behaving differently in build, causing conditions to evaluate differently and setting timescale on some animations to 0.