void OnDisable() { if (Application.isEditor) { GetComponent<MeshFilter>().mesh = null; DestroyImmediate(m_Mesh); } }