Position Object on the Map with a GeographicTransform

Place a GameObject on the Map at a specific Latitude, Longitude, and Elevation, using a GeographicTransform. This works in both Unity and ECEF coordinate systems.

To run this example, open the Wrld/Demo/Examples.unity scene, click the Play button, and select Position Object on the Map with a GeographicTransform from the dropdown.

Position Object on the Map with a GeographicTransform

  1. Create an empty GameObject in the scene hierarchy.
  2. Attach the GeographicTransform.cs script to this object.
  3. Set the desired Latitude, Longitude, and Elevation for the object in the Inspector pane.
  4. Make the GameObject that you want to place upon the map a child of the GeographicTransform in the scene hierarchy.