Class UsesIsHoveringOverUIMethods
Namespace: Unity.Labs.EditorXR.Interfaces
Syntax
public static class UsesIsHoveringOverUIMethods
Methods
IsHoveringOverUI(IUsesIsHoveringOverUI, Transform)
Returns whether the specified ray origin is hovering over a UI element
Declaration
public static bool IsHoveringOverUI(this IUsesIsHoveringOverUI user, Transform rayOrigin)
Parameters
| Type | Name | Description |
|---|---|---|
| IUsesIsHoveringOverUI | user | The functionality user |
| Transform | rayOrigin | The rayOrigin that is being checked |
Returns
| Type | Description |
|---|---|
| Boolean | Whether the ray is hovering over UI |