Struct AppUITouch
A touch event received from a magic trackpad.
Inherited Members
Namespace: Unity.AppUI.Core
Assembly: Unity.AppUI.dll
Syntax
public struct AppUITouch
Remarks
Theses Touch events can be received from a magic trackpad on macOS.
Constructors
AppUITouch(int, Vector2, Vector2, float, TouchPhase)
Constructor.
Declaration
public AppUITouch(int fingerId, Vector2 position, Vector2 deltaPos, float deltaTime, TouchPhase phase)
Parameters
Type | Name | Description |
---|---|---|
int | fingerId | The unique identifier of the touch. |
Vector2 | position | The position of the touch in normalized coordinates. |
Vector2 | deltaPos | The delta position of the touch since the last frame. |
float | deltaTime | The delta time since the last frame. |
TouchPhase | phase | The phase of the touch. |
Properties
deltaPos
The delta position of the touch since the last frame.
Declaration
public readonly Vector2 deltaPos { get; }
Property Value
Type | Description |
---|---|
Vector2 |
deltaTime
The delta time since the last frame.
Declaration
public readonly float deltaTime { get; }
Property Value
Type | Description |
---|---|
float |
fingerId
The unique identifier of the touch.
Declaration
public readonly int fingerId { get; }
Property Value
Type | Description |
---|---|
int |
phase
The phase of the touch.
Declaration
public readonly TouchPhase phase { get; }
Property Value
Type | Description |
---|---|
TouchPhase |
position
The position of the touch in normalized coordinates.
Declaration
public readonly Vector2 position { get; }
Property Value
Type | Description |
---|---|
Vector2 |