Language
Edit

GazePinchInteractor Class

Definition

An indirectly-targeted interactor that performs interactions driven by variable pinch distance. The valid targets of this interactor are harvested from the valid targets of the specified DependentInteractor.

[UnityEngine.AddComponentMenu("MRTK/Input/Gaze Pinch Interactor")]
public class GazePinchInteractor : UnityEngine.XR.Interaction.Toolkit.XRBaseControllerInteractor, MixedReality.Toolkit.IGazePinchInteractor, MixedReality.Toolkit.IHandedInteractor
[<UnityEngine.AddComponentMenu("MRTK/Input/Gaze Pinch Interactor")>]
type GazePinchInteractor = class
    inherit XRBaseControllerInteractor
    interface IGazePinchInteractor
    interface IVariableSelectInteractor
    interface IXRSelectInteractor
    interface IXRInteractor
    interface IXRHoverInteractor
    interface IHandedInteractor
Public Class GazePinchInteractor
Inherits XRBaseControllerInteractor
Implements IGazePinchInteractor, IHandedInteractor
Inheritance
UnityEngine.XR.Interaction.Toolkit.XRBaseControllerInteractor
GazePinchInteractor
Attributes
UnityEngine.AddComponentMenuAttribute
Implements
IGazePinchInteractor IHandedInteractor IVariableSelectInteractor UnityEngine.XR.Interaction.Toolkit.IXRHoverInteractor UnityEngine.XR.Interaction.Toolkit.IXRInteractor UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractor

Constructors

Name Description
GazePinchInteractor()

Properties

Name Description
AimPoseSource

The pose source representing the ray this interactor uses for aiming and positioning.

DependentInteractor

The pose source representing the ray this interactor uses for aiming and positioning.

DevicePoseSource

The pose source representing the device triggering the interaction.

isHoverActive UnityEngine.XR.Interaction.Toolkit.IXRHoverInteractor.isHoverActive
isSelectActive UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractor.isSelectActive
PinchPose

The world-space pose of the hand pinching point.

PinchPoseSource

The pose source representing the world-space pose of the hand pinching point.

PinchReady

Is the hand ready to select? Typically, this represents whether the hand is in a pinching pose, within the FOV set by the aggregator config.

RelaxationThreshold

How un-pinched the hand must be to initiate a new hover or selection on a new target.

SelectProgress

Returns a value [0,1] representing the variable amount of "selection" that this interactor is performing.

StickyHoverThreshold

The pinch amount at which the currently hovered target will 'stick' to the gaze.

Methods

Name Description
CanHover(IXRHoverInteractable) UnityEngine.XR.Interaction.Toolkit.IXRHoverInteractor.CanHover(UnityEngine.XR.Interaction.Toolkit.IXRHoverInteractable)
CanSelect(IXRSelectInteractable) UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractor.CanSelect(UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractable)
GetValidTargets(List<IXRInteractable>) UnityEngine.XR.Interaction.Toolkit.IXRInteractor.GetValidTargets(System.Collections.Generic.List{UnityEngine.XR.Interaction.Toolkit.IXRInteractable})
OnSelectEntered(SelectEnterEventArgs) UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractor.OnSelectEntered(UnityEngine.XR.Interaction.Toolkit.SelectEnterEventArgs)
OnSelectExited(SelectExitEventArgs) UnityEngine.XR.Interaction.Toolkit.IXRSelectInteractor.OnSelectExited(UnityEngine.XR.Interaction.Toolkit.SelectExitEventArgs)
ProcessInteractor(XRInteractionUpdateOrder+UpdatePhase) UnityEngine.XR.Interaction.Toolkit.IXRInteractor.ProcessInteractor(UnityEngine.XR.Interaction.Toolkit.XRInteractionUpdateOrder.UpdatePhase)

Explicit Interface Implementations

Name Description
IHandedInteractor.Handedness

Returns the Handedness of this interactor.

Applies to