コード例 #1
0
 public static void IntSliderPref(PrefValue <int> pref, string label, Action <int> onChange = null)
 {
     pref.DirtyOnChange(EditorGUILayout.IntSlider(label, pref, pref.MinValue, pref.MaxValue), onChange);
 }
コード例 #2
0
 public static void TogglePref(PrefValue <bool> pref, string label, Action <bool> onChange = null)
 {
     pref.DirtyOnChange(EditorGUILayout.ToggleLeft(label, pref, GUILayout.Width(250)), onChange);
 }