ProtoFlux:Number To Enum

From Resonite Wiki
NumberToEnum
Value
*
Enums

See Enums for a more in depth explaination on what Enums are. This node can be useful for turning numbers back into Enums, in cases like reading Cloud Variables that can't store Enums normally.

For what to input for variants other than IntToEnum, please see Complex Types in Components

This node has the following variants, with their respective outputs:

Variant Node Type Output
Number To Enum (Byte) ByteToEnum provided Byte as any chosen (Enum)
Number To Enum (Int) IntToEnum provided Int as any chosen (Enum)
Number To Enum (Long) LongToEnum provided Long as any chosen (Enum)
Number To Enum (Sbyte) SbyteToEnum provided Sbyte as any chosen (Enum)
Number To Enum (Short) ShortToEnum provided Short as any chosen (Enum)
Number To Enum (Uint) UintToEnum provided Uint as any chosen (Enum)
Number To Enum (Ulong) UlongToEnum provided Ulong as any chosen (Enum)
Number To Enum (Ushort) UshortToEnum provided Ushort as any chosen (Enum)

Inputs

Value (Variant)

The whole number to convert to a Enum of the type chosen for * (Enum Generic).

Outputs

* (Enum Generic)

The Enum with the chosen enum type that has a number matching Value (Variant) according to Enums Page.