Options
All
  • Public
  • Public/Protected
  • All
Menu

Captures the interaction between the mouse/touch and the UI control. This component requires the RectTransform component, from the UILayout module.

Hierarchy

Index

Constructors

constructor

  • new MouseInteraction(down?: boolean, over?: boolean, clicked?: boolean): MouseInteraction
  • Parameters

    • Optional down: boolean
    • Optional over: boolean
    • Optional clicked: boolean

    Returns MouseInteraction

Properties

clicked

clicked: boolean

True if the UI control is clicked. A click consists of a mouse-down action and a corresponding mouse-up action while the cursor is inside the control's bounds.

down

down: boolean

True if the mouse button is pressed and the press started when the cursor was over the UI control.

over

over: boolean

True if the cursor is inside the bounds of the UI control.

Static _isSharedComp

_isSharedComp: boolean

Static _size

_size: number

Static _view

_view: any

Static cid

cid: number

Static clicked

Static down

Static over

Methods

Static _dtorFn

Static _fromPtr

Static _tempHeapPtr

Static _toPtr

  • Parameters

    Returns void

Generated using TypeDoc