예제 #1
0
        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();
        }
예제 #2
0
        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();
                }
            });
        }