Hide
FlagsDropdown
Note
This is default applied to enum-flags if you have SaintsEditor enabled

A searchable dropdown for enum flags (bit mask). Useful when you have a big enum flags type.

Parameters:

  • bool slashAsSub = true: should it tread / as path seperator in dropdown? This is helpful if you have SaintsField enabled, and has enum(flags) defined with InspectorName, but the / does not mean for grouping
using SaintsField; [Serializable, Flags] public enum F { [InspectorName("[Null]")] // InspectorName is optional Zero, [InspectorName("Options/Value1")] One = 1, [InspectorName("Options/Value2")] Two = 1 << 1, [InspectorName("Options/Value3")] Three = 1 << 2, Four = 1 << 3, } [FlagsDropdown] public F flags;

image