public void OnDisable() { s_GameViews.Remove(this); if (this.m_TargetTexture != null) { Object.DestroyImmediate(this.m_TargetTexture); } }