PlayModeTestUtilities.MoveMotionController Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Moves the motion controller from startPos to endPos.
public static System.Collections.IEnumerator MoveMotionController (UnityEngine.Vector3 startPos, UnityEngine.Vector3 endPos, Microsoft.MixedReality.Toolkit.Input.SimulatedMotionControllerButtonState buttonState, Microsoft.MixedReality.Toolkit.Utilities.Handedness handedness, Microsoft.MixedReality.Toolkit.Input.InputSimulationService inputSimulationService, int numSteps = -1);
static member MoveMotionController : UnityEngine.Vector3 * UnityEngine.Vector3 * Microsoft.MixedReality.Toolkit.Input.SimulatedMotionControllerButtonState * Microsoft.MixedReality.Toolkit.Utilities.Handedness * Microsoft.MixedReality.Toolkit.Input.InputSimulationService * int -> System.Collections.IEnumerator
Public Shared Iterator Function MoveMotionController (startPos As Vector3, endPos As Vector3, buttonState As SimulatedMotionControllerButtonState, handedness As Handedness, inputSimulationService As InputSimulationService, Optional numSteps As Integer = -1) As IEnumerator
Parameters
- startPos
- UnityEngine.Vector3
- endPos
- UnityEngine.Vector3
- buttonState
- SimulatedMotionControllerButtonState
- 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.