Class ExtendedPointerEventData
An extension to PointerEventData
which makes additional data about the input event available.
Inherited Members
Namespace: UnityEngine .InputSystem .UI
Assembly: Unity.InputSystem.dll
Syntax
public class ExtendedPointerEventData : PointerEventData
Remarks
Instances of this class are sent instead of Unity
The Unity
Constructors
ExtendedPointerEventData(EventSystem)
Declaration
public ExtendedPointerEventData(EventSystem eventSystem)
Parameters
Type | Name | Description |
---|---|---|
Event |
eventSystem |
Properties
control
The Input
Declaration
public InputControl control { get; set; }
Property Value
Type | Description |
---|---|
Input |
See Also
device
The Input
Declaration
public InputDevice device { get; set; }
Property Value
Type | Description |
---|---|
Input |
See Also
pointerType
Type of pointer that generated the input.
Declaration
public UIPointerType pointerType { get; set; }
Property Value
Type | Description |
---|---|
UIPointer |
touchId
For Touch type pointer input, this is the touch ID as reported by the Touchscreen device.
Declaration
public int touchId { get; set; }
Property Value
Type | Description |
---|---|
int |
Remarks
For pointer input that is not coming from touch, this will be 0 (which is not considered a valid touch ID by the input system).
Note that for touch input, Unity
See Also
trackedDeviceOrientation
For Tracked type pointer input, this is the world-space orientation of
the Tracked
Declaration
public Quaternion trackedDeviceOrientation { get; set; }
Property Value
Type | Description |
---|---|
Quaternion |
See Also
trackedDevicePosition
For Tracked type pointer input, this is the world-space position of
the Tracked
Declaration
public Vector3 trackedDevicePosition { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
See Also
uiToolkitPointerId
Declaration
public int uiToolkitPointerId { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |