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); }
/// <summary> /// Called when a mouse button is released with the tool active /// </summary> public virtual void OnMouseUp(PAMouseEvent evt) { }
/// <summary> /// Called when the mouse moves while the tool is active /// </summary> public virtual void OnMouseMove(PAMouseEvent evt) { }
/// <summary> /// Called when a mouse button is pressed with the tool active /// </summary> public virtual void OnMouseDown(PAMouseEvent evt) { }