Class XRHoverFilterDelegate
A hover filter that forwards its processing to a delegate (delegateToProcess). Useful to create custom filters by code without needing to create new classes.
Implements
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.Filtering
Assembly: solution.dll
Syntax
public sealed class XRHoverFilterDelegate : IXRHoverFilter
Constructors
| Name | Description |
|---|---|
| XRHoverFilterDelegate(Func<IXRHoverInteractor, IXRHoverInteractable, bool>) | Creates a new hover filter delegate. |
Properties
| Name | Description |
|---|---|
| canProcess | Whether this hover filter can process interactions. Hover filters that can process interactions receive calls to Process(IXRHoverInteractor, IXRHoverInteractable), hover filters that cannot process do not. |
| delegateToProcess | The delegate to be invoked when processing this filter. |
Methods
| Name | Description |
|---|---|
| Process(IXRHoverInteractor, IXRHoverInteractable) | Called by the host object (XRInteractionManager, XRBaseInteractor or XRBaseInteractable) to verify if the hover interaction between the given Interactor and Interactable can be performed. |