Description

The Make Bitmask node uses the flag index rather than the flag mask value unless the enum has the UseEnumValuesAsMaskValuesInEditor meta specifier. UserDefinedEnums in the editor don't support this flag at the moment, so reordering the UserDefinedEnum will change the value on the Make Bitmask node. 

Steps to Reproduce
  • Create a UserDefinedEnum(Blueprint Enum Asset) in the editor - MyEnum
  • Add a few entries A, B, C and check the Bitmask Flags check box under the advanced section
  • Create a Blueprint and add a Make Bitmask node to the graph
  • Set the Bitmask Enum property of the node to MyEnum
  • Set the Bitmask pin value of the Make Bitmask to A
  • Reorder the entries in MyEnum so that C is the first value
  • Note that the value of the Bitmask node pin will change from A to C

 

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-195374 in the post.

0
Login to Vote

Unresolved
ComponentUE - Gameplay - Blueprint
Affects Versions5.3
Target Fix5.5
CreatedSep 13, 2023
UpdatedFeb 12, 2024