Show / Hide Table of Contents

    Class ManipulationHandler

    This script allows for an object to be movable, scalable, and rotatable with one or two hands. You may also configure the script on only enable certain manipulations. The script works with both HoloLens' gesture input and immersive headset's motion controller input.

    Inheritance
    Object
    ManipulationHandler
    Implements
    IMixedRealityPointerHandler
    IMixedRealityFocusChangedHandler
    Namespace: Microsoft.MixedReality.Toolkit.UI
    Assembly: cs.temp.dll.dll
    Syntax
    public class ManipulationHandler : MonoBehaviour, IMixedRealityPointerHandler, IMixedRealityFocusChangedHandler

    Fields

    OnHoverEntered

    Declaration
    public ManipulationEvent OnHoverEntered
    Field Value
    Type Description
    ManipulationEvent

    OnHoverExited

    Declaration
    public ManipulationEvent OnHoverExited
    Field Value
    Type Description
    ManipulationEvent

    OnManipulationEnded

    Declaration
    public ManipulationEvent OnManipulationEnded
    Field Value
    Type Description
    ManipulationEvent

    OnManipulationStarted

    Declaration
    public ManipulationEvent OnManipulationStarted
    Field Value
    Type Description
    ManipulationEvent

    Properties

    AllowFarManipulation

    Declaration
    public bool AllowFarManipulation { get; set; }
    Property Value
    Type Description
    Boolean

    ConstraintOnMovement

    Declaration
    public MovementConstraintType ConstraintOnMovement { get; set; }
    Property Value
    Type Description
    MovementConstraintType

    ConstraintOnRotation

    Declaration
    public RotationConstraintType ConstraintOnRotation { get; set; }
    Property Value
    Type Description
    RotationConstraintType

    HostTransform

    Declaration
    public Transform HostTransform { get; set; }
    Property Value
    Type Description
    Transform

    ManipulationType

    Declaration
    public ManipulationHandler.HandMovementType ManipulationType { get; set; }
    Property Value
    Type Description
    ManipulationHandler.HandMovementType

    OneHandRotationModeFar

    Declaration
    public ManipulationHandler.RotateInOneHandType OneHandRotationModeFar { get; set; }
    Property Value
    Type Description
    ManipulationHandler.RotateInOneHandType

    OneHandRotationModeNear

    Declaration
    public ManipulationHandler.RotateInOneHandType OneHandRotationModeNear { get; set; }
    Property Value
    Type Description
    ManipulationHandler.RotateInOneHandType

    ReleaseBehavior

    Declaration
    public ManipulationHandler.ReleaseBehaviorType ReleaseBehavior { get; set; }
    Property Value
    Type Description
    ManipulationHandler.ReleaseBehaviorType

    SmoothingActive

    Declaration
    public bool SmoothingActive { get; set; }
    Property Value
    Type Description
    Boolean

    SmoothingAmoutOneHandManip

    Declaration
    public float SmoothingAmoutOneHandManip { get; set; }
    Property Value
    Type Description
    Single

    TwoHandedManipulationType

    Declaration
    public ManipulationHandler.TwoHandedManipulation TwoHandedManipulationType { get; set; }
    Property Value
    Type Description
    ManipulationHandler.TwoHandedManipulation

    Methods

    ForceEndManipulation()

    Releases the object that is currently manipulated

    Declaration
    public void ForceEndManipulation()

    GetPointerGrabPoint(UInt32)

    Gets the grab point for the given pointer id. Only use if you know that your given pointer id corresponds to a pointer that has grabbed this component.

    Declaration
    public Vector3 GetPointerGrabPoint(uint pointerId)
    Parameters
    Type Name Description
    UInt32 pointerId
    Returns
    Type Description
    Vector3

    OnBeforeFocusChange(FocusEventData)

    Declaration
    public void OnBeforeFocusChange(FocusEventData eventData)
    Parameters
    Type Name Description
    FocusEventData eventData

    OnFocusChanged(FocusEventData)

    Declaration
    public void OnFocusChanged(FocusEventData eventData)
    Parameters
    Type Name Description
    FocusEventData eventData

    OnPointerClicked(MixedRealityPointerEventData)

    Declaration
    public void OnPointerClicked(MixedRealityPointerEventData eventData)
    Parameters
    Type Name Description
    MixedRealityPointerEventData eventData

    OnPointerDown(MixedRealityPointerEventData)

    Declaration
    public void OnPointerDown(MixedRealityPointerEventData eventData)
    Parameters
    Type Name Description
    MixedRealityPointerEventData eventData

    OnPointerDragged(MixedRealityPointerEventData)

    Declaration
    public void OnPointerDragged(MixedRealityPointerEventData eventData)
    Parameters
    Type Name Description
    MixedRealityPointerEventData eventData

    OnPointerUp(MixedRealityPointerEventData)

    Declaration
    public void OnPointerUp(MixedRealityPointerEventData eventData)
    Parameters
    Type Name Description
    MixedRealityPointerEventData eventData

    Implements

    IMixedRealityPointerHandler
    IMixedRealityFocusChangedHandler
    Back to top Generated by DocFX