TestController Class

Definition

Utility class to use a simulated controller

C++
public ref class TestController abstract
Inheritance
TestController
Derived

Constructors

Fields

Methods

Click()

Perform a sequence of actions that represent a click for the controller

GetPointer<T>()

Return the first pointer of given type that is associated with this controller

GetVelocity()

Return the velocity of the simulated controller

Hide(Boolean)

Hide the controller

Move(Vector3, Int32)

Move the controller by some given delta

MoveTo(Vector3, Int32, Boolean)

Move controller to given position over some number of frames

SetRotation(Quaternion, Int32)

Rotate the controller to new rotation

Show(Vector3, Boolean)

Show the controller at a specified position

Applies to

Producto Versiones
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0