Exemplo n.º 1
0
 public static void EnumInt <T>(Rect rect, Prop prop, string tag = null, bool breakUnderline = true) where T : struct, System.IConvertible
 {
     prop.intValue = EditorGUI.Popup(rect, prop.intValue, CachedEnumNames <T> .Get(breakUnderline));
     Tag(rect.CutRight(10), tag);
 }
Exemplo n.º 2
0
 public static void EnumIntMask <T>(Rect rect, Prop prop, string tag = null) where T : struct, System.IConvertible
 {
     prop.intValue = EditorGUI.MaskField(rect, prop.intValue, CachedEnumNames <T> .Get(false));
     Tag(rect.CutRight(10), tag);
 }