private void OnDisable()
 {
     this.ClearCachedProperties();
     this.m_ObjectTab.OnDisable();
     InspectorState.SetBool("ShowRealtimeLightingSettings", this.m_ShowRealtimeSettings);
     InspectorState.SetBool("ShowBakedLightingSettings", this.m_ShowBakeSettings);
     InspectorState.SetBool("ShowGeneralLightingSettings", this.m_ShowGeneralSettings);
     EditorApplication.searchChanged = (EditorApplication.CallbackFunction)Delegate.Remove(EditorApplication.searchChanged, new EditorApplication.CallbackFunction(base.Repaint));
 }
Exemple #2
0
        public void Clear()
        {
            ParticleSystem root = this.GetRoot();

            if (this.ShouldManagePlaybackState(root) && root != null)
            {
                ParticleEffectUI.PlayState playState;
                if (this.IsPlaying())
                {
                    playState = ParticleEffectUI.PlayState.Playing;
                }
                else
                {
                    if (this.IsPaused())
                    {
                        playState = ParticleEffectUI.PlayState.Paused;
                    }
                    else
                    {
                        playState = ParticleEffectUI.PlayState.Stopped;
                    }
                }
                int instanceID = root.GetInstanceID();
                InspectorState.SetVector3("SimulationState" + instanceID, new Vector3((float)instanceID, (float)playState, ParticleSystemEditorUtils.editorPlaybackTime));
            }
            this.m_ParticleSystemCurveEditor.OnDisable();
            ParticleEffectUtils.ClearPlanes();
            Tools.s_Hidden = false;
            if (root != null)
            {
                InspectorState.SetBool("ShowSelected" + root.GetInstanceID(), this.m_ShowOnlySelectedMode);
            }
            this.SetShowOnlySelectedMode(false);
            GameView.RepaintAll();
            SceneView.RepaintAll();
        }
Exemple #3
0
 public virtual void OnDisable()
 {
     InspectorState.SetBool("ShowFogEditorFoldout", this.m_ShowEditor);
 }
 public virtual void OnDisable()
 {
     InspectorState.SetBool("ShowLightingEditor", this.m_ShowEditor);
 }