示例#1
0
 /// <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);
     }
 }
示例#2
0
 /// <summary>
 /// Inspector GUI re-draw call.
 /// </summary>
 public override sealed void OnInspectorGUI()
 {
     OnBeginToolboxEditor?.Invoke(this);
     DrawCustomInspector();
     OnCloseToolboxEditor?.Invoke(this);
 }