기술 자료

Unity Engine

Unity Engine

attitude

Returns the attitude (ie, orientation in space) of the device.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.InputLegacyModule
public Quaternion attitude { get; }

Examples

using UnityEngine;public class Example : MonoBehaviour{ // Rotate the object to match the device's orientation // in space. void Update() { transform.rotation = Input.gyro.attitude; }}