I’m having some trouble using the Legacy Animation track. I’ve set up a simple legacy animation on a cube to demonstrate the issue. I have created an animation track for an object, placed a clip in that track and set it up with the correct animation.
When I play the cutscene the animation clip begins playing on loop immediately (i.e. before the clip has been hit), only stopping once the cutscene has reached the end of the clip.
From looking at the source for PlayAnimationClip and AnimationTrack, it seems that the clip is being sampled constantly from the beginning of the cutscene. Then when the clip it hit, the animation is sampled twice per frame until the clip is over.
Have I fundamentally misunderstood how to use this functionality or is this a bug?
The Animation Track will sample the default Animation Clip assigned in the Animation Component when there is no other animation clip sampled in it’s timeline. The Animation Track only samples this clip if any. If you remove the default animation clip from the Animation Component, everything will work as you’d expect.
The reason the above is done, is so that you can potentially have a base animation playing like an “Idle”, when no other clip plays in the track and even blend between that base default clip and the clips playing in the track. 🙂
Let me know if that clarifies what’s happening and if it works for you.
Thanks.
I feel like that behaviour should be dependent on the “play automatically” flag on the animation component, or at least show something in the Slate editor window to signify what’s happening. Bit confusing!
I agree it can get confusing.
I will see into making this more clear, probably by some added option in the Animation Track to whether or not use this feature.
Thanks for the feedback 🙂
Join us on Discord: https://discord.gg/97q2Rjh
Author
Posts
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.