Class PointerId
A static class that holds pointer ID values.
Namespace: UnityEngine.UIElements
Syntax
public static class PointerId : object
Remarks
These values are used as the values for IPointerEvent.pointerId.
Fields
invalidPointerId
Represents an invalid pointer ID value.
Declaration
public static readonly int invalidPointerId
Field Value
Type | Description |
---|---|
Int32 |
maxPointers
The maximum number of pointers the implementation supports.
Declaration
public static readonly int maxPointers
Field Value
Type | Description |
---|---|
Int32 |
mousePointerId
The mouse pointer ID.
Declaration
public static readonly int mousePointerId
Field Value
Type | Description |
---|---|
Int32 |
penPointerCount
The number of pen pointers the implementation supports.
Declaration
public static readonly int penPointerCount
Field Value
Type | Description |
---|---|
Int32 |
Remarks
The pointer ID for a pen event is a number between penPointerIdBase and penPointerIdBase + penPointerCount - 1.
penPointerIdBase
The base ID for pen pointers.
Declaration
public static readonly int penPointerIdBase
Field Value
Type | Description |
---|---|
Int32 |
Remarks
The pointer ID for a pen event is a number between penPointerIdBase and penPointerIdBase + penPointerCount - 1.
touchPointerCount
The number of touch pointers the implementation supports.
Declaration
public static readonly int touchPointerCount
Field Value
Type | Description |
---|---|
Int32 |
Remarks
The pointer ID for a touch event is a number between touchPointerIdBase and touchPointerIdBase + touchPointerCount - 1.
touchPointerIdBase
The base ID for touch pointers.
Declaration
public static readonly int touchPointerIdBase
Field Value
Type | Description |
---|---|
Int32 |
Remarks
The pointer ID for a touch event is a number between touchPointerIdBase and touchPointerIdBase + touchPointerCount - 1.