public static void DoGUI(this PrefItem <int> pref, int min, int max) { pref.Value = EditorGUILayout.IntSlider(pref.Content, pref.Value, min, max); }