Bitmasks are treated the same as an integer value in a Blueprint Graph. Bitmask integer output pins can be connected to any input pin that accepts an integer value; this will
usually be the bitwise OR, AND, XOR and NOT operations.
In this first example, a single Make Bitmask node is passed to a Bitwise XOR node to toggle the Red flag stored in Target Color Flags. The enumeration storing the color values would also
Bitmask Flags attribute toggled on.
In the second example, the Select node, Bitwise NOT, and Bitwise AND nodes all take integers as inputs, so they can be used to select one of three sets of colors, toggle them, and then
save that result out to the
Target Color Flags bitmask.
Click image for full size.