I have an enum flag, but when I select all the values or select the Everything option, it resets to None.
This seems to only affect unsigned integers, such as byte and ushort.
Is there a way I can disable this automatic behaviour, where selecting all values doesn’t just turn in to Everything (which is broken)?
My current workaround is to just create an extra flag, and create my own Everything flag which contains all flags but the extra one, like this:
[Flags]
public enum LogType : byte
{
None = 0,
All = User | System | Log | Warning | Assertion | Error,
User = 1 << 0,
System = 1 << 1,
Log = 1 << 2,
Warning = 1 << 3,
Assertion = 1 << 4,
Error = 1 << 5,
ImJustHereCozUnityDumb = 1 << 6,
}