Esempio n. 1
0
        private void GlobalSettings(bool helpEnabled)
        {
#if GAIA_PRO_PRESENT
            if (m_renderpipeline == GaiaConstants.EnvironmentRenderer.BuiltIn)
            {
                //EditorGUILayout.HelpBox(m_editorUtils.GetTextValue("BuiltInHelpText"), MessageType.Info);
                m_editorUtils.TextNonLocalized(m_editorUtils.GetTextValue("BuiltInHelpText"));
                if (ProceduralWorldsGlobalWeather.Instance != null)
                {
                    if (ProceduralWorldsGlobalWeather.Instance.m_modifyPostProcessing)
                    {
                        //if (GUILayout.Button(new GUIContent("Disable Post FX In Weather", "Disables the post processing fx to be used/synced in the PW Sky weather and time of day system")))
                        if (m_editorUtils.Button("DisablePostFXInWeather"))
                        {
                            m_profile.DisableWeatherPostFX();
                        }
                    }
                    else
                    {
                        //if (GUILayout.Button(new GUIContent("Enable Post FX In Weather", "Enables the post processing fx to be used/synced in the PW Sky weather and time of day system")))
                        if (m_editorUtils.Button("EnablePostFXInWeather"))
                        {
                            m_profile.EnableWeatherPostFX();
                        }
                    }
                }
            }
            else
            {
                //EditorGUILayout.HelpBox(m_editorUtils.GetTextValue("SRPHelpText"), MessageType.Info);
                m_editorUtils.TextNonLocalized(m_editorUtils.GetTextValue("SRPHelpText"));
            }
#endif
        }