dropdowntounityflagvalue - eisclimber/ExPresS-XR GitHub Wiki
Method in RuntimeUtils
Enforces Unity's Flags rules on an int from a Dropdown where 'Everything' = -1 and not only 1's.
public static T DropdownToUnityFlagValue<T>(int value)
where T : Enum| Name | Description |
|---|---|
int value |
The value to be converted to type T. |
Returns the with a corrected value.