Class XRSelectInteractorExtensions
Extension methods for IXRSelectInteractor.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit
Syntax
public static class XRSelectInteractorExtensions
Methods
GetOldestInteractableSelected(IXRSelectInteractor)
Gets the oldest Interactable currently selected. This is a convenience method for when the Interactor does not support selecting multiple interactables at a time.
Declaration
public static IXRSelectInteractable GetOldestInteractableSelected(this IXRSelectInteractor interactor)
Parameters
Type | Name | Description |
---|---|---|
IXRSelectInteractor | interactor | The Interactor to operate on. |
Returns
Type | Description |
---|---|
IXRSelectInteractable | Returns the oldest Interactable currently selected. |
Remarks
Equivalent to
interactablesSelected.Count > 0 ? interactablesSelected[0] : null