UnityEditor.TimeControl.OnDisable C# (CSharp) Method

OnDisable() public method

public OnDisable ( ) : void
return void
        public void OnDisable()
        {
            this.playing = false;
        }

Usage Example

        public void OnDisable()
        {
            if (m_PreviewUtility != null)
            {
                m_PreviewUtility.Cleanup();
                m_PreviewUtility = null;
            }

            if (timeControl != null)
            {
                timeControl.OnDisable();
            }
        }