Interface IXRSelectFilter
Instances that implement this interface are called select filters. Select filters process additional validation checks after the base class select validation checks are processed. Add a select filter to the following objects to extend its select validations:
- XRInteraction
Manager : to add a global select filter used to validate all select interactions in the manager. - XRBase
Interactor : to add an Interactor select filter used to validate the select interactions in the Interactor. - XRBase
Interactable : to add an Interactable select filter used to validate the select interactions in the Interactable.
Namespace: UnityEngine .XR.Interaction.Toolkit.Filtering
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
public interface IXRSelectFilter
Properties
canProcess
Whether this select filter can process interactions.
Select filters that can process interactions receive calls to Process(IXRSelect
Declaration
bool canProcess { get; }
Property Value
Type | Description |
---|---|
bool |
Remarks
It's recommended to return is
See Also
Methods
Process(IXRSelectInteractor, IXRSelectInteractable)
Called by the host object (XRInteraction
Declaration
bool Process(IXRSelectInteractor interactor, IXRSelectInteractable interactable)
Parameters
Type | Name | Description |
---|---|---|
IXRSelect |
interactor | The Interactor to validate the select interaction. |
IXRSelect |
interactable | The Interactable to validate the select interaction. |
Returns
Type | Description |
---|---|
bool | Returns true when the given Interactor can select the given Interactable. Otherwise, returns false. |