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