public void OnDestroy() { foreach (View view in this.m_Children) { Object.DestroyImmediate(view, true); } }