PokeInteractor Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An interactor that is used for poking/pressing near interactions.
[UnityEngine.AddComponentMenu("MRTK/Input/Poke Interactor")]
public class PokeInteractor : UnityEngine.XR.Interaction.Toolkit.XRBaseControllerInteractor, MixedReality.Toolkit.IHandedInteractor, MixedReality.Toolkit.IPokeInteractor
[<UnityEngine.AddComponentMenu("MRTK/Input/Poke Interactor")>]
type PokeInteractor = class
inherit XRBaseControllerInteractor
interface IPokeInteractor
interface IXRHoverInteractor
interface IXRInteractor
interface IXRSelectInteractor
interface IHandedInteractor
Public Class PokeInteractor
Inherits XRBaseControllerInteractor
Implements IHandedInteractor, IPokeInteractor
- Inheritance
-
UnityEngine.XR.Interaction.Toolkit.XRBaseControllerInteractorPokeInteractor
- Attributes
-
UnityEngine.AddComponentMenuAttribute
- Implements
-
IHandedInteractor IPokeInteractor UnityEngine.XR.Interaction.Toolkit.IXRHoverInteractor UnityEngine.XR.Interaction.Toolkit.IXRInteractor UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractor
Constructors
| Name | Description |
|---|---|
| PokeInteractor() | |
Properties
| Name | Description |
|---|---|
| isHoverActive | UnityEngine.XR.Interaction.Toolkit.IXRHoverInteractor.isHoverActive |
| isSelectActive | UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractor.isSelectActive |
| PokePoseSource |
The pose source representing the poke pose |
| PokeRadius |
The radius of the poking point. |
| PokeTrajectory |
The path that the poke has taken over the course of the last frame. |
Methods
| Name | Description |
|---|---|
| Awake() |
A Unity event function that is called when an enabled script instance is being loaded. |
| GetValidTargets(List<IXRInteractable>) | UnityEngine.XR.Interaction.Toolkit.IXRInteractor.GetValidTargets(System.Collections.Generic.List{UnityEngine.XR.Interaction.Toolkit.IXRInteractable}) |
| ProcessInteractor(XRInteractionUpdateOrder+UpdatePhase) | UnityEngine.XR.Interaction.Toolkit.IXRInteractor.ProcessInteractor(UnityEngine.XR.Interaction.Toolkit.XRInteractionUpdateOrder.UpdatePhase) |
| TryGetPokePose(Pose) |
Called during ProcessInteractor to obtain the poking pose. UnityEngine.XR.Interaction.Toolkit.XRBaseInteractor.attachTransform is set to this pose. Override to customize how poses are calculated. |
| TryGetPokeRadius(Single) |
Called during ProcessInteractor to obtain the poking radius. All raycasts and other physics detections are done according to this radius. Override to customize how the radius is calculated. |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IHandedInteractor.Handedness |
Returns the Handedness of this interactor. |