UAnimInstance::GetCurveValue() returns wrong values when transitioning from another state
I have an animation curve in my sequence that plays from 1 to 0 in a linear fashion, when I play this animation on a transition from another state I grab the curve value by it's name with
Why is it that instead of starting at the initial values (1.0f) the values start at cero and ramp up until they catch up with the actual curve values? Also is there a way to get the actual curve values coming from another state without having this issue?
My initial guess is that the animation is blending coming from another state and that's why I cannot get the actual values of the curve until the blending is done.
Any help on this would be appreciated.
Found the issue, the problem is indeed a blending issue, you see between animation states there is a standard blending being applied, and if you click on the transition rule you will see these settings, by default there is a 2 second blending happening and this is affecting how much the weight is applied on the incoming animation, that's why the animation curve doesn't show the actual values when transitioning.
To get the actual curve value after the trasition I had to set the blendtime to 0sec and check if there is a curve when I request it before using it's value, like
I hope this can help someone else looking for the same answer.
answered Nov 29 '17 at 10:30 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here