void OnDisable() { if (!Application.isPlaying) { EMRenderSupport.Remove(this); } }
void OnDisable() { if (Application.isPlaying) { if (this.container != null) { this.container._disabled = true; } } else { EMRenderSupport.Remove(this); } }
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(); }
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; }