/// <summary> /// Called to draw the inspector GUI. /// </summary> public override void OnInspectorGUI() { if (drawDefaultInspector) { base.OnInspectorGUI(); } if (Event.current.type == EventType.ValidateCommand) { switch (Event.current.commandName) { case "UndoRedoPerformed": RepaintScheduler.RepaintAllViews(); break; } } }
/// <summary> /// Called when the internal time has changed. /// </summary> /// <param name="deltaTime">Delta time.</param> protected virtual void OnTimeAliveChanged(float deltaTime) { RepaintScheduler.RepaintAllViews(); }