日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    Show / Hide Table of Contents

    Class UnityTouchController

    Inheritance
    Object
    BaseController
    UnityTouchController
    Implements
    IMixedRealityController
    Inherited Members
    BaseController.DefaultLeftHandedInteractions
    BaseController.DefaultRightHandedInteractions
    BaseController.Enabled
    BaseController.TrackingState
    BaseController.ControllerHandedness
    BaseController.InputSource
    BaseController.Visualizer
    BaseController.IsPositionAvailable
    BaseController.IsPositionApproximate
    BaseController.IsRotationAvailable
    BaseController.Interactions
    BaseController.AngularVelocity
    BaseController.Velocity
    BaseController.IsInPointingPose
    BaseController.SetupConfiguration(Type, InputSourceType)
    BaseController.SetupConfiguration(Type)
    BaseController.SetupDefaultInteractions(Handedness)
    BaseController.AssignControllerMappings(MixedRealityInteractionMapping[])
    BaseController.TryRenderControllerModel(Type, InputSourceType)
    BaseController.TryAddControllerModelToSceneHierarchy(GameObject)
    BaseController.GetControllerVisualizationProfile()
    BaseController.IsControllerMappingEnabled()
    BaseController.GetControllerMappings()
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.Input.UnityInput
    Assembly: cs.temp.dll.dll
    Syntax
    public class UnityTouchController : BaseController, IMixedRealityController

    Constructors

    UnityTouchController(TrackingState, Handedness, IMixedRealityInputSource, MixedRealityInteractionMapping[])

    Declaration
    public UnityTouchController(TrackingState trackingState, Handedness controllerHandedness, IMixedRealityInputSource inputSource = null, MixedRealityInteractionMapping[] interactions = null)
    Parameters
    Type Name Description
    TrackingState trackingState
    Handedness controllerHandedness
    IMixedRealityInputSource inputSource
    MixedRealityInteractionMapping[] interactions

    Properties

    DefaultInteractions

    The default interactions for this controller.

    Declaration
    public override MixedRealityInteractionMapping[] DefaultInteractions { get; }
    Property Value
    Type Description
    MixedRealityInteractionMapping[]
    Overrides
    BaseController.DefaultInteractions

    Lifetime

    The current lifetime of the Touch.

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

    ManipulationThreshold

    The threshold a finger must move before starting a manipulation gesture.

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

    MaxTapContactTime

    Time in seconds to determine if the contact registers as a tap or a hold

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

    ScreenPointRay

    Current Screen point ray for the Touch.

    Declaration
    public Ray ScreenPointRay { get; }
    Property Value
    Type Description
    Ray

    TouchData

    Current Touch Data for the Controller.

    Declaration
    public Touch TouchData { get; }
    Property Value
    Type Description
    Touch

    Methods

    EndTouch()

    End the touch.

    Declaration
    public void EndTouch()

    SetupDefaultInteractions()

    Assign the default interactions based on this controller's handedness, if necessary.

    Declaration
    public override void SetupDefaultInteractions()
    Overrides
    BaseController.SetupDefaultInteractions()

    StartTouch()

    Start the touch.

    Declaration
    public void StartTouch()

    Update()

    Update the touch data.

    Declaration
    public void Update()

    Implements

    IMixedRealityController
    Back to top Generated by DocFX