/// <summary> /// Inspector GUI re-draw call. /// </summary> public override sealed void OnInspectorGUI() { try { OnBeginToolboxEditor?.Invoke(this); DrawCustomInspector(); } catch (Exception) { //make sure to catch all Exceptions (especially ExitGUIException), //it will allow us to safely dispose all layout-based controls, etc. OnBreakToolboxEditor?.Invoke(this); throw; } finally { OnCloseToolboxEditor?.Invoke(this); } }
/// <summary> /// Inspector GUI re-draw call. /// </summary> public override sealed void OnInspectorGUI() { OnBeginToolboxEditor?.Invoke(this); DrawCustomInspector(); OnCloseToolboxEditor?.Invoke(this); }