public void DestroyInspector() { if (m_IsoHeaderInspector != null) { GameObject.Destroy(m_IsoHeaderInspector.gameObject); m_IsoHeaderInspector = null; } }
public void CreateInspector() { DestroyInspector(); m_IsoHeaderInspector = VCEUIIsoHeaderInspector.Instantiate(m_IsoHeaderInspectorRes) as VCEUIIsoHeaderInspector; m_IsoHeaderInspector.transform.parent = VCEditor.Instance.m_UI.m_InspectorGroup; m_IsoHeaderInspector.transform.localPosition = Vector3.zero; m_IsoHeaderInspector.transform.localScale = Vector3.one; m_IsoHeaderInspector.gameObject.SetActive(true); }