Hey all,
Here’s the setup:
I have an object that is controlled by the Timeline, but also has an Animator component on it with a functioning state machine.
At the start of the Timeline, there’s an animation clip that increases the scale of the object from 0 to 1 (making it appear). At any point, the user can press a button to trigger a change in the Animator that plays an animation setting the scale from 1 to 0 (making it disappear). Then, when the user presses another button, the Timeline restarts, playing the scale up animation again. This mostly works, except when the scale up animation finishes playing for the second time, the scale immediately reverts back to 0.
In order to allow for the Animator to take over, I had to set the Post-Extrapolate behavior of the Timeline clip to None. What I’m assuming is happening is that when the clip is done playing, the Timeline hands the control of the clip back to the Animator, which has most recently played the scale down animation, and thinks the scale should be 0. What’s confusing me is I have all states in the Animator set to NOT Overwrite Defaults so I’m not sure why this is happening.
Regardless, is there a good way to mix a Timeline with dynamic/procedural animation coming from an Animator?