Class XRFocusInteractableExtensions
Extension methods for IXRFocusInteractable.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
public static class XRFocusInteractableExtensions
Methods
GetOldestInteractorFocusing(IXRFocusInteractable)
Gets the oldest interaction group currently focusing on this interactable. This is a convenience method for when the interactable does not support being focused by multiple interaction groups at a time.
Declaration
public static IXRInteractionGroup GetOldestInteractorFocusing(this IXRFocusInteractable interactable)
Parameters
Type | Name | Description |
---|---|---|
IXRFocusInteractable | interactable | The interactable to operate on. |
Returns
Type | Description |
---|---|
IXRInteractionGroup | Returns the oldest interaction group currently focusing this interactable. |
Remarks
Equivalent to
interactionGroupsFocusing.Count > 0 ? interactionGroupsFocusing[0] : null