Version: 2019.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; } }