Struct PointerInteraction
Captures the interaction between the mouse/touch and the UI control. This component requires the RectTransform component, from the UILayout module.
Namespace: Unity.Tiny.UIControls
Syntax
public struct PointerInteraction : IComponentData
Fields
clicked
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.
Declaration
public bool clicked
Field Value
Type | Description |
---|---|
System.Boolean |
down
True if the mouse button is pressed and the press started when the cursor was over the UI control.
Declaration
public bool down
Field Value
Type | Description |
---|---|
System.Boolean |
over
True if the cursor is inside the bounds of the UI control.
Declaration
public bool over
Field Value
Type | Description |
---|---|
System.Boolean |