Flag Enums of a type other than int with 0 undefined throw an assert in the inspector and do not work

Issue #805 resolved
Alexandre Monette Martin created an issue
[Flags] //Work
public enum FlagEnumChoice1
{
A = 1,
B = 2,
C = 4,
D = 8,
}
[Flags] //Does not work with improved display
public enum FlagEnumChoice2 : short
{
A = 1,
B = 2,
C = 4,
D = 8,
}
[Flags] //Work
public enum FlagEnumChoice3 : short
{
NONE = 0,
A = 1,
B = 2,
C = 4,
D = 8,
}```

Issue was fixed in version 3.0.6 but got re-introduced in version 3.0.8

Tested on: Unity 2021.2.0b15, Windows 10, Odin 3.0.9 and Odin Editor Only disabled.

Comments (3)

  1. Log in to comment