FAnimNode_BlendListByEnum assumes that values within a custom enum type are sequential (ie. the index 0 = value 0, index 1 = value 1). But this is not true of all custom enum types, for example:
UENUM(BlueprintType) enum class EAnimType : uint8 { Default = 0, Type1 = 1, Type100 = 100, MAX };
Here index 3 = 100 so we can't just map from the enum value directly to the pin index. We need to go via the enum index, from the enum value. So we need another mapping on FAnimNode_BlendListByEnum like EnumToPoseIndex but instead for EnumIndexToEnumValue.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-222678 in the post.
0 |
Component | UE - Anim - Runtime - Anim Blueprints |
---|---|
Affects Versions | 5.4.4 |
Target Fix | 5.6 |
Created | Aug 26, 2024 |
---|---|
Updated | Sep 26, 2024 |