We are noticing our animation curves in 4.17.2 is being dropped in cooked builds. I came across this piece of code in AnimSequence which clears the animation curves before serializing and then put back the curves. We basically disabled this portion of the code and now our animation curves came back in cooked builds. Is there another way to put in animation curves? Are we missing a step for cooking animation curves? Or is this the plan to not use animation curves?
Nevermind. I found out that there was an accessor function (UAnimSequence::GetCurveData) that we have to go through to get the curves which decides if it gets the raw curve or the compressed curve.
I ran into this Issue recently when i was testing various Animations in a Cooked Build:
Turns out i was getting the Data using Animation->RawCurveData which directly uses the Raw Curve, though this won’t work in Cooked Builds anymore so you have to use Animation->GetCurveData() which takes care of choosing between CompressedCurveData or RawCurveData, as example to access the Curve it could look like this: