Class TrackedDevice
An input device that has its orientation and position in space tracked.
Inherited Members
Namespace: UnityEngine.InputSystem
Assembly: Unity.InputSystem.dll
Syntax
public class TrackedDevice : InputDevice
Properties
devicePosition
Declaration
public Vector3Control devicePosition { get; protected set; }
Property Value
Type | Description |
---|---|
Vector3Control |
See Also
deviceRotation
Declaration
public QuaternionControl deviceRotation { get; protected set; }
Property Value
Type | Description |
---|---|
QuaternionControl |
See Also
isTracked
Declaration
public ButtonControl isTracked { get; protected set; }
Property Value
Type | Description |
---|---|
ButtonControl |
See Also
trackingState
Declaration
public IntegerControl trackingState { get; protected set; }
Property Value
Type | Description |
---|---|
IntegerControl |
See Also
Methods
FinishSetup()
Perform final initialization tasks after the control hierarchy has been put into place.
Declaration
protected override void FinishSetup()
Overrides
Remarks
This method can be overridden to perform control- or device-specific setup work. The most common use case is for looking up child controls and storing them in local getters.
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");
}
}</code></pre></example>