文档

Unity Engine

Unity Engine

lastData

The last geographical location that the device registered.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.InputLegacyModule
public LocationInfo lastData { get; }

Remarks

Before you access this property, call Start() in Input.location to start the location service.
Note: On WebGL, this value is 0 or null if the browser has no implementation for it.