Class UnityTouchController
Implements
Inherited Members
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
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(Handedness)
Assign the default interactions based on controller handedness if necessary.
Declaration
public override void SetupDefaultInteractions(Handedness controllerHandedness)
Parameters
Type | Name | Description |
---|---|---|
Handedness | controllerHandedness |
Overrides
StartTouch()
Start the touch.
Declaration
public void StartTouch()
Update()
Update the touch data.
Declaration
public void Update()