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