Method Process
Process(IXRSelectInteractor, IXRSelectInteractable)
Called by the host object (XRInteractionManager, XRBaseInteractor or XRBaseInteractable) to verify if the select interaction between the given Interactor and Interactable can be performed.
Declaration
public bool Process(IXRSelectInteractor interactor, IXRSelectInteractable interactable)
Parameters
| Type | Name | Description |
|---|---|---|
| IXRSelectInteractor | interactor | The Interactor to validate the select interaction. |
| IXRSelectInteractable | 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. |
Implements
Process(IXRInteractor, IXRInteractable, float)
Called by the host object (XRBaseInteractable) to calculate the interaction strength between the given Interactor and Interactable.
Declaration
public float Process(IXRInteractor interactor, IXRInteractable interactable, float interactionStrength)
Parameters
| Type | Name | Description |
|---|---|---|
| IXRInteractor | interactor | The Interactor interacting. |
| IXRInteractable | interactable | The Interactable interacting with the interactor. |
| float | interactionStrength | The input interaction strength. |
Returns
| Type | Description |
|---|---|
| float | Returns the modified interaction strength that is the result of passing the interaction strength through the filter. |