Пример #1
0
        public override void OnMouseDown(PAMouseEvent evt)
        {
            base.OnMouseDown(evt);

            Selection = null;
            MarkDirtyRepaint();
        }
Пример #2
0
        public override void OnMouseUp(PAMouseEvent evt)
        {
            if (evt.button == UnityEngine.UIElements.MouseButton.LeftMouse && Selection == null)
            {
                Canvas.ClearSelection();
            }

            base.OnMouseUp(evt);
        }
Пример #3
0
 /// <summary>
 /// Called when a mouse button is released with the tool active
 /// </summary>
 public virtual void OnMouseUp(PAMouseEvent evt)
 {
 }
Пример #4
0
 /// <summary>
 /// Called when the mouse moves while the tool is active
 /// </summary>
 public virtual void OnMouseMove(PAMouseEvent evt)
 {
 }
Пример #5
0
 /// <summary>
 /// Called when a mouse button is pressed with the tool active
 /// </summary>
 public virtual void OnMouseDown(PAMouseEvent evt)
 {
 }