LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

LocationInfo

struct in UnityEngine

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.