UnityEditor.CubemapInspector.OnDisable C# (CSharp) Method

OnDisable() protected method

protected OnDisable ( ) : void
return void
        protected override void OnDisable()
        {
            base.OnDisable();
            if (this.m_Images != null)
            {
                for (int i = 0; i < this.m_Images.Length; i++)
                {
                    if ((this.m_Images[i] != null) && !EditorUtility.IsPersistent(this.m_Images[i]))
                    {
                        Object.DestroyImmediate(this.m_Images[i]);
                    }
                }
            }
            this.m_Images = null;
        }