Class UsesRaycastResultsMethods
Namespace: Unity.Labs.EditorXR.Interfaces
Syntax
public static class UsesRaycastResultsMethods
Methods
GetFirstGameObject(IUsesRaycastResults, Transform)
Method used to test hover/intersection Returns the first GameObject being hovered over, or intersected with
Declaration
public static GameObject GetFirstGameObject(this IUsesRaycastResults user, Transform rayOrigin)
Parameters
Type | Name | Description |
---|---|---|
IUsesRaycastResults | user | The functionality user |
Transform | rayOrigin | The rayOrigin for intersection purposes |
Returns
Type | Description |
---|---|
GameObject |