Esempio n. 1
0
        static SettingsProvider CreateProjectSettingsProvider()
        {
            var provider = AssetSettingsProvider.CreateProviderFromAssetPath(
                "Project/Physics", "ProjectSettings/DynamicsManager.asset",
                SettingsProvider.GetSearchKeywordsFromPath("ProjectSettings/DynamicsManager.asset"));

            return(provider);
        }
        internal static SettingsProvider CreateProjectSettingsProvider()
        {
            var provider = AssetSettingsProvider.CreateProviderFromAssetPath(
                "Project/Input", "ProjectSettings/InputManager.asset",
                SettingsProvider.GetSearchKeywordsFromPath("ProjectSettings/InputManager.asset"));

            return(provider);
        }
        internal static SettingsProvider CreateProjectSettingsProvider()
        {
            var provider = AssetSettingsProvider.CreateProviderFromAssetPath(
                "Project/Physics 2D", "ProjectSettings/Physics2DSettings.asset",
                SettingsProvider.GetSearchKeywordsFromPath("ProjectSettings/Physics2DSettings.asset"));

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

            return(provider);
        }
Esempio n. 5
0
        internal static SettingsProvider CreateProjectSettingsProvider()
        {
            if (!UnityEngine.VFX.VFXManager.activateVFX)
            {
                return(null);
            }
            var provider = AssetSettingsProvider.CreateProviderFromAssetPath(
                "Project/VFX", "ProjectSettings/VFXManager.asset",
                SettingsProvider.GetSearchKeywordsFromPath("ProjectSettings/VFXManager.asset"));

            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);
        }