Struct GyroscopeSensor | Project Tiny | 0.31.0-preview.24
docs.unity.cn
    Show / Hide Table of Contents

    Struct GyroscopeSensor

    Use the gyroscope to measure the angular velocity of a device. Use AngularVelocity property (float3) to get angular velocity values. Values are affected by the InputSystem.CompensateForScreenOrientation setting.

    Namespace: Unity.Tiny.Input
    Syntax
    public struct GyroscopeSensor : IComponentData

    Fields

    AngularVelocity

    Declaration
    public float3 AngularVelocity
    Field Value
    Type Description
    Unity.Mathematics.float3

    LastUpdateTime

    Declaration
    public TimeData LastUpdateTime
    Field Value
    Type Description
    TimeData
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 06 November 2020