I have a UI animation that is animated within Unity; it is on an additive layer, and the animation is it ‘appearing’ in the scene by moving off-camera into position.
The problem is that by default the first animation frame is used as the reference frame. This makes the UI element move away from it’s intended final position.
In imported assets you can set a custom frame as the animation reference pose, but I can’t find a way to do this in-editor for my animation.
There is the UnityEditor method, AnimationUtility.SetAdditiveReferencePose, but I don’t know what the least cumbersome way of implementing this is. I tried putting it in the Awake() method of the animation state’s StatemachineBehaviour, but this crashes Unity…so I expect I’m using it incorrectly.