internal static SettingsProvider CreateProjectSettingsProvider()
 {
     var provider = AssetSettingsProvider.CreateProviderFromAssetPath(
         "Project/Editor", "ProjectSettings/EditorSettings.asset",
         SettingsProvider.GetSearchKeywordsFromGUIContentProperties<Content>());
     return provider;
 }
        internal static SettingsProvider CreateProjectSettingsProvider()
        {
            var provider = AssetSettingsProvider.CreateProviderFromAssetPath(
                "Project/Quality", "ProjectSettings/QualitySettings.asset",
                SettingsProvider.GetSearchKeywordsFromGUIContentProperties <Styles>().Concat(SettingsProvider.GetSearchKeywordsFromPath("ProjectSettings/QualitySettings.asset")));

            return(provider);
        }
Exemplo n.º 3
0
        static SettingsProvider CreateProjectSettingsProvider()
        {
            var provider = AssetSettingsProvider.CreateProviderFromAssetPath(
                "Project/Audio", "ProjectSettings/AudioManager.asset",
                SettingsProvider.GetSearchKeywordsFromGUIContentProperties <Styles>());

            return(provider);
        }
        internal static SettingsProvider CreateProjectSettingsProvider()
        {
            var provider = AssetSettingsProvider.CreateProviderFromAssetPath(
                "Project/Version Control", "ProjectSettings/VersionControlSettings.asset",
                SettingsProvider.GetSearchKeywordsFromGUIContentProperties <Styles>());

            return(provider);
        }
        internal static SettingsProvider CreateProjectSettingsProvider()
        {
            var provider = AssetSettingsProvider.CreateProviderFromAssetPath(
                "Project/Time", "ProjectSettings/TimeManager.asset",
                SettingsProvider.GetSearchKeywordsFromGUIContentProperties <Content>());

            return(provider);
        }
Exemplo n.º 6
0
        internal static SettingsProvider CreateProjectSettingsProvider()
        {
            var provider = new AssetSettingsProvider(
                "Project/Script Execution Order",
                () => Editor.CreateEditor(Resources.FindObjectsOfTypeAll(typeof(MonoManager)).First()),
                SettingsProvider.GetSearchKeywordsFromGUIContentProperties <Content>());

            return(provider);
        }
Exemplo n.º 7
0
        internal static SettingsProvider CreateProjectSettingsProvider()
        {
            var provider = AssetSettingsProvider.CreateProviderFromAssetPath(
                "Project/Memory Settings", "ProjectSettings/MemorySettings.asset",
                SettingsProvider.GetSearchKeywordsFromGUIContentProperties <Content>());

            s_SettingsProvider = provider;
            return(provider);
        }
        static SettingsProvider CreateProjectSettingsProvider()
        {
            var provider = AssetSettingsProvider.CreateProviderFromAssetPath("Project/Graphics", "ProjectSettings/GraphicsSettings.asset");

            provider.keywords = SettingsProvider.GetSearchKeywordsFromGUIContentProperties <Styles>()
                                .Concat(SettingsProvider.GetSearchKeywordsFromGUIContentProperties <TierSettingsEditor.Styles>())
                                .Concat(SettingsProvider.GetSearchKeywordsFromGUIContentProperties <BuiltinShadersEditor.Styles>())
                                .Concat(SettingsProvider.GetSearchKeywordsFromGUIContentProperties <ShaderStrippingEditor.Styles>())
                                .Concat(SettingsProvider.GetSearchKeywordsFromGUIContentProperties <ShaderPreloadEditor.Styles>())
                                .Concat(SettingsProvider.GetSearchKeywordsFromPath("ProjectSettings/GraphicsSettings.asset"));

            provider.activateHandler = (searchContext, rootElement) =>
            {
                (provider.settingsEditor as GraphicsSettingsInspector)?.SetSectionOpenListener(provider.Repaint);
            };

            provider.icon = EditorGUIUtility.FindTexture("UnityEngine/UI/GraphicRaycaster Icon");
            return(provider);
        }
        internal static SettingsProvider CreateSettingsProvider()
        {
            var settingsProvider = new SettingsProvider("Preferences/2D/Grid Brush", SettingsScope.User, SettingsProvider.GetSearchKeywordsFromGUIContentProperties <GridBrushProperties>())
            {
                guiHandler = searchContext =>
                {
                    PreferencesGUI();
                }
            };

            return(settingsProvider);
        }