Class TrackedDevice
An input device that has its orientation and position in space tracked.
Inheritance
TrackedDevice
Assembly: Unity.InputSystem.dll
public class TrackedDevice : InputDevice
Properties
Declaration
public Vector3Control devicePosition { get; protected set; }
Property Value
Declaration
public QuaternionControl deviceRotation { get; protected set; }
Property Value
Declaration
public ButtonControl isTracked { get; protected set; }
Property Value
Declaration
public IntegerControl trackingState { get; protected set; }
Property Value
Methods
Perform final initialization tasks after the control hierarchy has been put into place.
Declaration
protected override void FinishSetup()
Overrides
public class MyDevice : InputDevice
{
public ButtonControl button { get; private set; }
public AxisControl axis { get; private set; }
protected override void OnFinishSetup()
{
// Cache controls in getters.
button = GetChildControl("button");
axis = GetChildControl("axis");
}
}
Extension Methods
See Also