public static void OnGUI(string key, string label = null, Vector2 defaultValue = default(Vector2)) { GUILayout.BeginHorizontal(); GUILayout.Label(label ?? key); PlayerPrefs <float> .OnGUI(key + "x", "", defaultValue.x); PlayerPrefs <float> .OnGUI(key + "y", "", defaultValue.y); GUILayout.EndHorizontal(); }
public void OnGUI(string label = null) { PlayerPrefs <T> .OnGUI(key, label, defaultValue); }