Versions with this page:
Versions without this page:
Retorna la atitude (es decir, orientación en espacio) del dispositivo.
using UnityEngine; using System.Collections;public class ExampleClass : MonoBehaviour { void Update() { transform.rotation = Input.gyro.attitude; } }