Version: 2023.2

LocationService

class in UnityEngine

切换到手册

描述

Provides methods that allow an application to access the device's ___location.

变量

isEnabledByUserIndicates whether the device allows the application to access the ___location service.
lastDataThe last geographical ___location that the device registered.
statusReturns the ___location service status.

公共函数

StartStarts ___location service updates.
StopStops ___location service updates. This is useful to save battery power when the application doesn't require the ___location service.