Struct GravitySensor
Use the gravity sensor to determine the direction of the gravity vector relative to a device. Use Gravity property (float3) to get gravity vector values. Values are affected by the InputSystem.CompensateForScreenOrientation setting.
Namespace: Unity.Tiny.Input
Syntax
public struct GravitySensor : IComponentData
Fields
Gravity
Declaration
public float3 Gravity
Field Value
Type | Description |
---|---|
float3 |
LastUpdateTime
Declaration
public TimeData LastUpdateTime
Field Value
Type | Description |
---|---|
TimeData |