Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Question GPS Coordinates Translation for HoloLens2

Discussion in 'VR' started by CraigBreenHogg3D, May 2, 2023.

  1. CraigBreenHogg3D

    CraigBreenHogg3D

    Joined:
    Sep 7, 2022
    Posts:
    8
    Hey there,

    Bit of a newbie when it comes to working with GPS coordinates in Unity and I have an project that needs to translate them in unity. For this project I am building for HoloLens which doesn't have built in GPS so instead I was thinking of adding an input text UI at the beginning which lets you input the GPS you are at for the lat and long values. I need to be able to store the value to calculate the offset of other GPS coordinates that have been taken down from an power platform table using the Dataverse Web API and update them as the player moves to ensure they don't stray in the playspace since the spatial mapping in HoloLens doesn't work the best in flat open areas. I am currently working on scripts for these but I was wondering if there is any examples or other possible solutions worth looking at as we were using an web app for this function but decided to change it out for something built into unity itself.

    Any help would be greatly appreciated more than happy to post the scripts I have set up currently if that helps!