Modifica

Condividi tramite


MoveObjByEyeGaze Class

Definition

public ref class MoveObjByEyeGaze : UnityEngine::MonoBehaviour, Microsoft::MixedReality::Toolkit::Input::IMixedRealityHandJointHandler, Microsoft::MixedReality::Toolkit::Input::IMixedRealityPointerHandler, Microsoft::MixedReality::Toolkit::Input::IMixedRealitySourceStateHandler, Microsoft::MixedReality::Toolkit::Input::IMixedRealitySpeechHandler, UnityEngine::EventSystems::IEventSystemHandler
[UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/MoveObjByEyeGaze")]
public class MoveObjByEyeGaze : UnityEngine.MonoBehaviour, Microsoft.MixedReality.Toolkit.Input.IMixedRealityHandJointHandler, Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointerHandler, Microsoft.MixedReality.Toolkit.Input.IMixedRealitySourceStateHandler, Microsoft.MixedReality.Toolkit.Input.IMixedRealitySpeechHandler, UnityEngine.EventSystems.IEventSystemHandler
[<UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/MoveObjByEyeGaze")>]
type MoveObjByEyeGaze = class
    inherit MonoBehaviour
    interface IMixedRealitySpeechHandler
    interface IMixedRealityBaseInputHandler
    interface IEventSystemHandler
    interface IMixedRealitySourceStateHandler
    interface IMixedRealityPointerHandler
    interface IMixedRealityHandJointHandler
Public Class MoveObjByEyeGaze
Inherits MonoBehaviour
Implements IEventSystemHandler, IMixedRealityHandJointHandler, IMixedRealityPointerHandler, IMixedRealitySourceStateHandler, IMixedRealitySpeechHandler
Inheritance
UnityEngine.MonoBehaviour
MoveObjByEyeGaze
Attributes
UnityEngine.AddComponentMenuAttribute
Implements

Constructors

MoveObjByEyeGaze()

Fields

LocalMinMax_X
LocalMinMax_Y
LocalMinMax_Z
PlacementSurface

Methods

Angle_InitialGazeToCurrGazeDir()

Compute the angle between the initial (when selecting the target) and current eye gaze direction.

Angle_ToCurrHitTarget(GameObject)

Compute angle between target center ( OR original targeting location??? ) and current targeting direction

ConstrainMovement()
DragAndDrop_Finish()

Finalize placing the currently selected target.

DragAndDrop_Start()

Begin with the selection and movement of the focused target.

MoveTargetBy(Vector3)
MoveTargetTo(Vector3)
OnDrop_SnapToClosestDecimal()

Explicit Interface Implementations

IMixedRealityHandJointHandler.OnHandJointsUpdated(InputEventData<IDictionary<TrackedHandJoint,MixedRealityPose>>)
IMixedRealityPointerHandler.OnPointerClicked(MixedRealityPointerEventData)
IMixedRealityPointerHandler.OnPointerDown(MixedRealityPointerEventData)
IMixedRealityPointerHandler.OnPointerDragged(MixedRealityPointerEventData)
IMixedRealityPointerHandler.OnPointerUp(MixedRealityPointerEventData)
IMixedRealitySourceStateHandler.OnSourceDetected(SourceStateEventData)
IMixedRealitySourceStateHandler.OnSourceLost(SourceStateEventData)
IMixedRealitySpeechHandler.OnSpeechKeywordRecognized(SpeechEventData)

Applies to