Class XRPokeFilter
Filter component that allows for basic poke functionality and to define constraints for when the interactable will be selected.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.Filtering
Assembly: solution.dll
Syntax
[AddComponentMenu("XR/XR Poke Filter", 11)]
[HelpURL("https://docs.unity.cn/Packages/com.unity.xr.interaction.toolkit@3.0/api/UnityEngine.XR.Interaction.Toolkit.Filtering.XRPokeFilter.html")]
public class XRPokeFilter : MonoBehaviour, IXRPokeFilter, IXRSelectFilter, IXRInteractionStrengthFilter, IPokeStateDataProvider
Properties
| Name | Description |
|---|---|
| canProcess | Whether this poke filter can process interactions. |
| pokeCollider | The Collider used to compute bounds of the poke interaction. |
| pokeConfiguration | The settings used to fine tune the vector and offsets which dictate how the poke interaction will be evaluated. |
| pokeInteractable | The XRBaseInteractable associated with this poke filter. |
| pokeStateData | IReadOnlyBindableVariable<T> that updates whenever the poke logic state is evaluated. |
Methods
| Name | Description |
|---|---|
| Awake() | See MonoBehaviour. |
| OnDestroy() | See MonoBehaviour. |
| OnDrawGizmosSelected() | See MonoBehaviour. |
| OnValidate() | See MonoBehaviour. |
| Process(IXRInteractor, IXRInteractable, float) | Called by the host object (XRBaseInteractable) to calculate the interaction strength between the given Interactor and Interactable. |
| 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. |
| Reset() | See MonoBehaviour. |
| Start() | See MonoBehaviour. |