Remove() public static method

public static Remove ( EMRenderTarget value ) : void
value EMRenderTarget
return void
 void OnDisable()
 {
     if (!Application.isPlaying)
     {
         EMRenderSupport.Remove(this);
     }
 }
示例#2
0
 void OnDisable()
 {
     if (Application.isPlaying)
     {
         if (this.container != null)
         {
             this.container._disabled = true;
         }
     }
     else
     {
         EMRenderSupport.Remove(this);
     }
 }
示例#3
0
        void OnDestroy()
        {
            if (container != null)
            {
                if (!Application.isPlaying)
                {
                    EMRenderSupport.Remove(this);
                }

                if (_ui != null)
                {
                    _ui.Dispose();
                    _ui = null;
                }

                container.Dispose();
                container = null;
            }
        }
        void OnDestroy()
        {
            if (Application.isPlaying)
            {
                if (_ui != null)
                {
                    _ui.Dispose();
                    _ui = null;
                }

                container.Dispose();
                container = null;
            }
            else
            {
                EMRenderSupport.Remove(this);
            }

            DestroyTexture();
        }
示例#5
0
        void OnDestroy()
        {
            Debug.Log("UIPanel.OnDestroy");
            if (container != null)
            {
                if (!Application.isPlaying)
                {
                    EMRenderSupport.Remove(this);
                }

                if (_ui != null)
                {
                    _ui.Dispose();
                    _ui = null;
                }

                container.Dispose();
                container = null;
            }

            _renders = null;
        }