Select to view content in your preferred language

API request isn't working in Unity

310
2
08-26-2024 06:40 AM
JustinCresta
New Contributor

Hello,

I'm using Unity 2022.3.42f and ArcGIS Maps SDK for Unity version 1.6.0.

I'm trying to follow the tutorial here: https://developers.arcgis.com/unity/maps/tutorials/display-a-map-api/ 

I have an API key, as shown in the first image. I have all the code copied. Both the map component and the camera are successfully created, but the map itself doesn't show. The inspector for the map component doesn't show the basemap, elevation, or layers either, as shown in the second image.

I have also tried using the map creator UI and samples and gotten similar results, making me inclined to believe that the issue is with my API key or request. When I check the developer credentials, it also says that the API key has had no usage.

Thanks for the help, sorry if this post was silly.

0 Kudos
2 Replies
HadidIgis
New Contributor

I am having the same issue, were you able to solve it?

0 Kudos
AShahbaz
Esri Contributor

Hello,

  • Can you confirm that you have attached the created script to an empty game object (or an existing game object)?
  • Can you load any of the sample scenes with your API key?
  • Could you add a View State Logger to the map game object and monitor the console for any errors or warnings? (you may need to import the plugin samples if you haven't done yet)
0 Kudos