Exemplo n.º 1
0
        /// <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;
                }
            }
        }
Exemplo n.º 2
0
 /// <summary>
 ///     Called when the internal time has changed.
 /// </summary>
 /// <param name="deltaTime">Delta time.</param>
 protected virtual void OnTimeAliveChanged(float deltaTime)
 {
     RepaintScheduler.RepaintAllViews();
 }