LocationService

class in UnityEngine

/

Implemented in:UnityEngine.InputLegacyModule

Description

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

Properties

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.

Public Methods

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

Did you find this page useful? Please give it a rating: