public override void OnMouseDown(PAMouseEvent evt)
        {
            base.OnMouseDown(evt);

            Selection = null;
            MarkDirtyRepaint();
        }
        public override void OnMouseUp(PAMouseEvent evt)
        {
            if (evt.button == UnityEngine.UIElements.MouseButton.LeftMouse && Selection == null)
            {
                Canvas.ClearSelection();
            }

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