Hi everyone,
I’m new to both Unity and ArcGIS, and I’m currently working on a project where I need to display a route/path on a map and show the player's position based on the GPS coordinates from their phone.
So far, I haven’t found a solution that works well. Has anyone implemented something similar or knows a good approach, plugin, or tutorial for this?
Any advice or recommendations would be greatly appreciated. Thanks!
Hi @AlexisLantier , I think a good start is to look at ArcGISLocationComponent. You can use Unity's mobile location API to get phone's lat/long, then update ArcGISLocationComponent of the player's gameobject. If you have the route coordinates, you can covert these geographic points into Unity/world positions and render the path using the LineRenderer in Unity. We have a routing sample that might also help a lot: https://github.com/Esri/arcgis-maps-sdk-unity-samples/tree/main/sample_project/Assets/SampleViewer/S...