Method PointerInside
PointerInside(VisualElement, int)
Checks if a pointer is inside the VisualElement.
Declaration
protected static bool PointerInside(VisualElement visualElement, int touch)Parameters
| Type | Name | Description |
|---|---|---|
| VisualElement | visualElement | TargetedVisualElement. |
| int | touch | Positive number or 0 for touch screen, -1 for mouse, -2 for pen. |
Returns
| Type |
|---|
| bool |
PointerInside(VisualElement, Vector2)
Checks if the specified position is inside theVisualElement.
Declaration
protected static bool PointerInside(VisualElement visualElement, Vector2 position)Parameters
| Type | Name |
|---|---|
| VisualElement | visualElement |
| Vector2 | position |
Returns
| Type |
|---|
| bool |
