Class HandheldARInputDevice
A Handheld AR device layout that represents a mobile AR device, for use with the Input System package.
Inherited Members
InputDevice.all
Namespace: UnityEngine.XR.ARSubsystems
Assembly: Unity.XR.ARSubsystems.dll
Syntax
[Preserve]
[InputControlLayout(displayName = "AR Handheld Device", isGenericTypeOfDevice = true)]
public class HandheldARInputDevice : InputDevice
Properties
devicePosition
The position in 3D space of the device.
Declaration
[Preserve]
[InputControl]
public Vector3Control devicePosition { get; }
Property Value
Type | Description |
---|---|
Vector3Control |
deviceRotation
The rotation in 3D space of the device.
Declaration
[Preserve]
[InputControl]
public QuaternionControl deviceRotation { get; }
Property Value
Type | Description |
---|---|
QuaternionControl |
Methods
FinishSetup()
Finishes setting up the device by storing the child controls.
Declaration
protected override void FinishSetup()