Class PointerEventExtensions
Extensions for UI-Toolkit PointerEvent
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public static class PointerEventExtensions
Methods
IsContextClick<T>(PointerEventBase<T>)
Check if the event is a context click
Declaration
public static bool IsContextClick<T>(this PointerEventBase<T> evt) where T : PointerEventBase<T>, new()
Parameters
| Type | Name | Description |
|---|---|---|
| PointerEventBase<T> | evt | The pointer event |
Returns
| Type | Description |
|---|---|
| bool | True if the event is a context click |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the pointer event |