Versions with this page:
Versions without this page:
Возвращает положение устройства в пространстве.
using UnityEngine;public class Example : MonoBehaviour { // Rotate the object to match the device's orientation // in space. void Update() { transform.rotation = Input.gyro.attitude; } }