Struct AttitudeSensor
Use the attitude sensor to determine the orientation of a device. Use Attitude property (quaternion) to get device orientation values. Values are affected by the InputSystem.CompensateForScreenOrientation setting.
Namespace: Unity.Tiny.Input
Syntax
public struct AttitudeSensor : IComponentData
Fields
Attitude
Declaration
public quaternion Attitude
Field Value
Type | Description |
---|---|
Unity.Mathematics.quaternion |
LastUpdateTime
Declaration
public TimeData LastUpdateTime
Field Value
Type | Description |
---|---|
TimeData |