mapbox-unity-sdk
mapbox-unity-sdk copied to clipboard
Installing Performance Branch Guide
Hey guys,
After one night trying to find a way to install Performance branch, I think I got it to work. If you need step by step guide, please see below. @brnkhy please correct me if I am wrong.
-
Download zip file https://github.com/mapbox/mapbox-unity-sdk/tree/performance
-
Open project file using Unity Hub
-
Insert Access Token
-
Install Universal RP
-
Assign MapboxURP Asset
-
Choose ZoomableMap Example and hit play
In some cases you might get a pink Map after you hit play.
It might be two things:
- You haven't installed URP
- Tile Material in Abstract Map is Default. You need to choose CustomLayerElevatedTerraineMaterial
@TheBriefTeam thanks a lot for the write-up! As you noted URP is the default renderer for this branch and in case you are upgrading from an older version of the map, you'll most likely lose your map settings and have to recreate them.
Hello quick question: Is it also possible to use the performance branch without URP/the classic 3D renderer? If so what would be the steps needed to do?
Is the performance branch the latest version of MapBox for Unity?
Why do I get only pink buildings?
Anyone been able to get the branch working on Unity 2021.3? The editor just crashes when I press play on the ZoomableMap example. The error according to the crashdump is in Unity.exe!DownloadHandlerTexture::OnFinishReceiveData(void) which apparently has to do with this issue: https://issuetracker.unity3d.com/issues/downloadhandlertexture-crashes-if-it-downloads-invalid-texture-data
After some more testing, it doesn't happen if I have Map Layers->Data Source set to None, so it must be something in the Vector data
I think you would have to test what works. Mapbox for Unity is not supported anymore and some confirmed employees where moved to other tasks almost two years ago. So I would not recommend it for any production work unfortunately