private static void OnPreferencesGUI() { if (GUILayout.Button("Open Web Documentation")) { BitStrapDocs.OpenDocs(); } foreach (var pair in drawPreferencesCallback) { if (pair.Value != null) { pair.Value(); } } GUILayout.FlexibleSpace(); }
private static SettingsProvider OnPreferencesGUI() { return(new SettingsProvider("Settings/BitStrap", SettingsScope.User) { label = "BitStrap", guiHandler = (searchContext) => { if (GUILayout.Button("Open Web Documentation")) { BitStrapDocs.OpenDocs(); } foreach (var pair in drawPreferencesCallback) { if (pair.Value != null) { pair.Value(); } } GUILayout.FlexibleSpace(); } }); }