When using the ArcGIS Location Component I can see the latitude and longitude in the inspector window. However, how do I access these values from script? I'd like to know the current position of the player.
GO.GetComponent<ArcGISLocationComponent>().Position.X or Y
Add using Esri.ArcGISMapsSDK.Components;
Why did I report an error "The type or namespace name 'ArcGISLocationComponent' could not be found"😭
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.