編集

次の方法で共有


PlayModeTestUtilities.MoveHand Method

Definition

Moves the hand from startPos to endPos.

public static System.Collections.IEnumerator MoveHand (UnityEngine.Vector3 startPos, UnityEngine.Vector3 endPos, Microsoft.MixedReality.Toolkit.Utilities.ArticulatedHandPose.GestureId gestureId, Microsoft.MixedReality.Toolkit.Utilities.Handedness handedness, Microsoft.MixedReality.Toolkit.Input.InputSimulationService inputSimulationService, int numSteps = -1);
static member MoveHand : UnityEngine.Vector3 * UnityEngine.Vector3 * Microsoft.MixedReality.Toolkit.Utilities.ArticulatedHandPose.GestureId * Microsoft.MixedReality.Toolkit.Utilities.Handedness * Microsoft.MixedReality.Toolkit.Input.InputSimulationService * int -> System.Collections.IEnumerator
Public Shared Iterator Function MoveHand (startPos As Vector3, endPos As Vector3, gestureId As ArticulatedHandPose.GestureId, handedness As Handedness, inputSimulationService As InputSimulationService, Optional numSteps As Integer = -1) As IEnumerator

Parameters

startPos
UnityEngine.Vector3
endPos
UnityEngine.Vector3
handedness
Handedness
inputSimulationService
InputSimulationService
numSteps
Int32

Returns

Remarks

Note that numSteps defaults to a value of -1, which is a sentinel value to indicate that the default number of steps should be used (i.e. ControllerMoveSteps). ControllerMoveSteps is not a compile time constant, which is a requirement for default parameter values.

Applies to