Modifica

Condividi tramite


HandBounds Class

Definition

Utility behavior to access the axis aligned bounds of IMixedRealityHands (or the proxy visualizer of IMixedRealityControllers).

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

Constructors

HandBounds()

Properties

Bounds

Accessor for the bounds associated with a handedness, calculated in global-axis-aligned space.

DrawBoundsGizmo

Should a gizmo be drawn to represent the hand bounds.

DrawLocalBoundsGizmo

Should a gizmo be drawn to represent the locally-calculated hand bounds.

LocalBounds

Accessor for the bounds associated with a handedness, calculated in local hand-space, locally axis aligned.

Methods

OnHandJointsUpdated(InputEventData<IDictionary<TrackedHandJoint,MixedRealityPose>>) UnityEngine.MonoBehaviour.OnHandJointsUpdated(Microsoft.MixedReality.Toolkit.Input.InputEventData{System.Collections.Generic.IDictionary{Microsoft.MixedReality.Toolkit.Utilities.TrackedHandJoint,Microsoft.MixedReality.Toolkit.Utilities.MixedRealityPose}})
OnSourceDetected(SourceStateEventData)

Raised when a source is detected.

OnSourceLost(SourceStateEventData)

Raised when a source is lost.

Applies to