protected override void ClearElements() { base.ClearElements(); if (customEditor != null) { customEditor.Cleanup(); customEditor = null; } }
protected override void GenerateElements() { if (Value.IsNull()) { initializeObjectButton.gameObject.SetActive(CanInitializeNewObject()); return; } initializeObjectButton.gameObject.SetActive(false); if ((customEditor = RuntimeInspectorUtils.GetCustomEditor(Value.GetType())) != null) { customEditor.GenerateElements(this); } else { CreateDrawersForVariables(); } }