Прочетете на английски Редактиране

Споделяне чрез


MoveObjByEyeGaze Class

Definition

C++
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
Inheritance
UnityEngine.MonoBehaviour
MoveObjByEyeGaze
Attributes
UnityEngine.AddComponentMenuAttribute
Implements

Constructors

Fields

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

Applies to

Продукт Версии
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0