Versions with this page:
Versions without this page:
上一帧期间进行的加速度测量的数量。
using UnityEngine; using System.Collections;public class ExampleClass : MonoBehaviour { void Update() { if (Input.accelerationEventCount > 0) print("We got new acceleration measurements"); } }