I have a mobile project that is currently using v1.5 of the Unity SDK.
I am migrating to v2.1 but when I update the package the basemap is not displaying.
I am using the sat image basemap:
https://www.arcgis.com/home/item.html?id=c7d2b5c334364e8fb5b73b0f4d6a779b
The project is currently using a legacy API key but changing to a new rotating key has the same issue.
Other game objects on the map render fine.
Are there things that need to be done to the project/map/camera when migrating from 1.x to 2.x?
Solved! Go to Solution.
Hi @LukeMcBeath1 , after upgrading a project from v1.5 to v2.1, the ArcGIS Camera component may appear disabled in the editor. You can manually enable it and re-save the scene, and it should then work correctly when entering play mode in v2.1.
Hi LukeMcBeath1, the new API key and the legacy one should both work. How did you set up the basemap layer (through the Map Creator UI or through C#)? I tested the basemap you provided in 2.1, it works on my end.
Map Creator UI
Thanks for your screenshot. We have updated the Authentication workflow.
Under your Basemap section in your inspector (using SDK 2.1), you can change the Authentication dropdown option from "None" to "API Key". This should make the basemap display. It seems that you have manually change this dropdown option when you updated to 2.1.
In the last screenshot I had reverted from 2.1 back to 1.5.
When using the 2.1 library the auth type is set to API Key
The scene viewer shows the basemap, but when I press play it just shows the brown unity ground
So the map renders in the editor view but not in the play mode? Can you check the camera position? Or you can try to go to the camera tab, and click "Align with View" so the camera will align with your current view in the editor, then hit "Play".
Do you mind sharing a video clip so we could better see what's going with the map when you hit "Play"? Was the map showing before you hit the "Play" in Editor mode? Also did the camera code that you provided work for you in v1.5?
PC is performing poorly after Windows 11 update 😞
Yes this code works with v1.5