예제 #1
0
 public static Action EnumField <Tenum>(string Label, Tenum value, Action <Tenum> onChange)
 {
     return(() => EditorWidgits.TextField(Label, value.ToString(), textVal => onChange(ParseTextEnum <Tenum>(value, textVal))));
 }
예제 #2
0
 public static Action TextField(string Label, string value, Action <string> onChange)
 {
     return(() => EditorWidgits.TextField(Label, value, onChange));
 }
예제 #3
0
 public static Action IntField(string Label, int value, Action <int> onChange)
 {
     return(() => EditorWidgits.TextField(Label, value.ToString(), textVal => onChange(ParseText(value, textVal))));
 }