Version: 2022.3
언어: 한국어
public Quaternion attitude ;

설명

Returns the attitude (ie, orientation in space) of the device.

using UnityEngine;

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