Version: 2021.1
言語: 日本語
public Quaternion attitude ;

説明

デバイスの傾き具合を返します

using UnityEngine;

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