Class GrabTouchExample
Implements
IMixedRealityTouchHandler
IMixedRealityInputHandler
Namespace: Microsoft.MixedReality.Toolkit.Examples
Assembly: cs.temp.dll.dll
Syntax
[Obsolete("This component is no longer supported", true)]
public class GrabTouchExample : MonoBehaviour, IMixedRealityTouchHandler, IMixedRealityInputHandler
Methods
OnInputDown(InputEventData)
Declaration
public void OnInputDown(InputEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
InputEventData | eventData |
OnInputPressed(InputEventData<Single>)
Declaration
public void OnInputPressed(InputEventData<float> eventData)
Parameters
Type | Name | Description |
---|---|---|
InputEventData<Single> | eventData |
OnInputUp(InputEventData)
Declaration
public void OnInputUp(InputEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
InputEventData | eventData |
OnPositionInputChanged(InputEventData<Vector2>)
Declaration
public void OnPositionInputChanged(InputEventData<Vector2> eventData)
Parameters
Type | Name | Description |
---|---|---|
InputEventData<Vector2> | eventData |
OnTouchCompleted(HandTrackingInputEventData)
This Handler is called by a HandTrackingInputSource when a Touch action for that hand starts.
Declaration
public void OnTouchCompleted(HandTrackingInputEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
HandTrackingInputEventData | eventData | The argument passed contains information about the InputSource, the point in space where the Touch action occurred and the status of the Touch action. |
Remarks
A Touch action requires a target. a Touch action must occur inside the bounds of a gameObject. The eventData argument contains.
OnTouchStarted(HandTrackingInputEventData)
Declaration
public void OnTouchStarted(HandTrackingInputEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
HandTrackingInputEventData | eventData |
OnTouchUpdated(HandTrackingInputEventData)
Declaration
public void OnTouchUpdated(HandTrackingInputEventData eventData)
Parameters
Type | Name | Description |
---|---|---|
HandTrackingInputEventData | eventData |
Implements
IMixedRealityTouchHandler
IMixedRealityInputHandler