Пример #1
0
        public void SetState(SceneProfile profile, bool state)
        {
            if (profile == null)
            {
                return;
            }

            profile.m_enableReflections         = state;
            profile.m_enableDisabeHeightFeature = state;

#if UPPipeline
            if (m_planarReflections != null)
            {
                m_planarReflections.SetReflectionState(state);
            }
            else
            {
                m_planarReflections = GameObject.FindObjectOfType <GaiaPlanarReflections>();
                if (m_planarReflections != null)
                {
                    m_planarReflections.SetReflectionState(state);
                }
            }
#endif
        }
Пример #2
0
 public override void OnInspectorGUI()
 {
     if (m_reflections == null)
     {
         m_reflections = (GaiaPlanarReflections)target;
     }
     //Initialization
     EditorGUILayout.HelpBox(m_helpText, MessageType.Info);
 }