Class AttitudeSensor
Input device representing an attitude sensor.
Inherited Members
Namespace: UnityEngine.InputSystem
Syntax
public class AttitudeSensor : Sensor
Remarks
An attitude sensor let's you determine the orientation of a device, and can be useful to control content by rotating a device.
Properties
attitude
Declaration
public QuaternionControl attitude { get; }
Property Value
Type | Description |
---|---|
QuaternionControl |
current
Declaration
public static AttitudeSensor current { get; }
Property Value
Type | Description |
---|---|
AttitudeSensor |
Methods
FinishSetup()
Declaration
protected override void FinishSetup()
Overrides
MakeCurrent()
Declaration
public override void MakeCurrent()
Overrides
OnRemoved()
Declaration
protected override void OnRemoved()