Class XRFocusInteractableExtensions
Extension methods for IXRFocus
Inherited Members
Namespace: UnityEngine .XR.Interaction.Toolkit.Interactables
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[MovedFrom("UnityEngine.XR.Interaction.Toolkit")]
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 |
---|---|---|
IXRFocus |
interactable | The interactable to operate on. |
Returns
Type | Description |
---|---|
IXRInteraction |
Returns the oldest interaction group currently focusing this interactable. |
Remarks
Equivalent to interactionGroupsFocusing.Count > 0 ? interactionGroupsFocusing[0] : null