UnityEditor.ParticleEffectUtils.ClearPlanes C# (CSharp) Method

ClearPlanes() public static method

public static ClearPlanes ( ) : void
return void
        public static void ClearPlanes()
        {
            if (s_Planes.Count > 0)
            {
                foreach (GameObject obj2 in s_Planes)
                {
                    Object.DestroyImmediate(obj2);
                }
                s_Planes.Clear();
            }
        }

Usage Example

        public void Clear()
        {
            ParticleSystem root = this.GetRoot();

            if (this.ShouldManagePlaybackState(root) && (root != null))
            {
                PlayState playing;
                if (this.IsPlaying())
                {
                    playing = PlayState.Playing;
                }
                else if (this.IsPaused())
                {
                    playing = PlayState.Paused;
                }
                else
                {
                    playing = PlayState.Stopped;
                }
                int instanceID = root.GetInstanceID();
                SessionState.SetVector3("SimulationState" + instanceID, new Vector3((float)instanceID, (float)playing, ParticleSystemEditorUtils.editorPlaybackTime));
            }
            this.m_ParticleSystemCurveEditor.OnDisable();
            ParticleEffectUtils.ClearPlanes();
            Tools.s_Hidden = false;
            if (root != null)
            {
                SessionState.SetBool("ShowSelected" + root.GetInstanceID(), this.m_ShowOnlySelectedMode);
            }
            this.SetShowOnlySelectedMode(false);
            GameView.RepaintAll();
            SceneView.RepaintAll();
        }
All Usage Examples Of UnityEditor.ParticleEffectUtils::ClearPlanes