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

    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
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 06 November 2020