The function SortAnimBranchingPointByTime()
and the field bAnimBranchingPointNeedsSort
in UAnimMontage
(AnimMontage.h) are public when building the game only and private when building the editor. This is due to a private:
tag in the #if WITH_EDITOR
right before these two are declared.
To duplicate, add to a blank c++ projecct the code:
UAnimMontage* test;
test->SortAnimBranchingPointByTime();
auto test2 = test->bAnimBranchingPointNeedsSort;
Compile using Debug Editor, this code should generate a compile error. Compile using Debug and it should compile with no errors.