public Quaternion attitude ;

説明

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

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Update() { transform.rotation = Input.gyro.attitude; } }