Class Mouse
public class Mouse : MonoBehaviour
- Inheritance
-
Mouse
Fields
Field Value
- bool
public bool lockAllUIInteractions
Field Value
- bool
Properties
public bool click { get; }
Property Value
- bool
public CursorState cursorState { get; }
Property Value
- CursorState
public bool hasHoverTrigger { get; }
Property Value
- bool
public bool held { get; }
Property Value
- bool
public InputTarget hoverTarget { get; }
Property Value
- InputTarget
public bool leftClick { get; }
Property Value
- bool
public bool leftHold { get; }
Property Value
- bool
public bool leftUnclick { get; }
Property Value
- bool
public bool middleClick { get; }
Property Value
- bool
public bool middleHold { get; }
Property Value
- bool
public bool middleUnclick { get; }
Property Value
- bool
public bool nothingClick { get; }
Property Value
- bool
public bool nothingHeld { get; }
Property Value
- bool
public int numButtonsHeld { get; }
Property Value
- int
public bool rightClick { get; }
Property Value
- bool
public bool rightHold { get; }
Property Value
- bool
public bool rightUnclick { get; }
Property Value
- bool
public float scrollCursorDisplayTime { get; }
Property Value
- float
public float scrollDelta { get; }
Property Value
- float
public bool unclick { get; }
Property Value
- bool
public Vector2 worldPos { get; }
Property Value
- Vector2
Methods
public bool IsClicked(MouseButton mouseButton)
Parameters
mouseButton
MouseButton
Returns
- bool
public bool IsHeld(MouseButton mouseButton)
Parameters
mouseButton
MouseButton
Returns
- bool
public bool IsUnclicked(MouseButton mouseButton)
Parameters
mouseButton
MouseButton
Returns
- bool
public void SetCursorSprite(CursorState cursorState)
Parameters
cursorState
CursorState
public void SetCursorState(CursorState cursorState)
Parameters
cursorState
CursorState
public void SubscribeToClick(UnityAction call)
Parameters
call
UnityAction
public void SubscribeToLeftClick(UnityAction call)
Parameters
call
UnityAction
public void SubscribeToLeftUnclick(UnityAction call)
Parameters
call
UnityAction
public void SubscribeToMiddleClick(UnityAction call)
Parameters
call
UnityAction
public void SubscribeToMiddleUnclick(UnityAction call)
Parameters
call
UnityAction
public void SubscribeToRightClick(UnityAction call)
Parameters
call
UnityAction
public void SubscribeToRightUnclick(UnityAction call)
Parameters
call
UnityAction
public void SubscribeToScroll(UnityAction call)
Parameters
call
UnityAction
public void SubscribeToUnclick(UnityAction call)
Parameters
call
UnityAction