Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

LocationInfo

struct in UnityEngine

/

Implemented in:UnityEngine.CoreModule

Description

Structure describing device location.

Units are in meters.

Properties

altitudeGeographical device location altitude.
horizontalAccuracyHorizontal accuracy of the location.
latitudeGeographical device location latitude.
longitudeGeographical device location latitude.
timestampTimestamp (in seconds since 1970) when location was last time updated.
verticalAccuracyVertical accuracy of the location.

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