Bundled AnimationClip is not keeping the correct length value. I have animation clips varying in length yet all clips when downloaded as a bundle reset their length to 1. 2.25 → 1 0.75 - > 1 etc.
I suspect this is a bug, or that I do not properly understand what is happening. Any insight would be great. Thanks!
Can confirm we are having similar issues on 5.1.2p3 with this…non-bundled references to animation clips return correct length. Loading a prefab with a reference to the animation clip brings in the wrong length. Looking into it further.
Ok problem found, a controller was referencing the animation clip and changes the length based on the speed passed in. I wasn’t doing anything with the controller, wasn’t aware this would be an issue. so it looks like Unity fixes up the .length of the animation behind the scenes during the bundling process so having a reference to the source clip is kind of ‘dangerous’ in this case.
just to confirm, nothing to do with bundling afaik, it’s just if a controller changes the Animator speed, the animation length changes under the hood. Not sure if this is a bug, seems odd that this would be the desired behaviour esp as other systems may want to use the same clip for various purposes.