Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


altitude

The altitude of the device's geographical location in meters.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.InputLegacyModule
public float altitude { get; }

Remarks

The altitude value can vary per platform based on the coordinate reference system each platform uses.
  • Android, UWP, Web: The altitude is measured relative to the WGS84 (World Geodetic System 1984) ellipsoid.
  • iOS: The altitude is measured relative to mean sea level, as provided by the CLLocation API (Apple).