mapbox-unity-sdk icon indicating copy to clipboard operation
mapbox-unity-sdk copied to clipboard

Installing Performance Branch Guide

Open RomanAtBrief opened this issue 3 years ago • 4 comments

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.

  1. Download zip file https://github.com/mapbox/mapbox-unity-sdk/tree/performance Screenshot 2021-09-14 at 11 45 21

  2. Open project file using Unity Hub Screenshot 2021-09-14 at 11 48 52

  3. Insert Access Token Screenshot 2021-09-14 at 11 52 09

  4. Install Universal RP Screenshot 2021-09-14 at 11 54 08

  5. Assign MapboxURP Asset Screenshot 2021-09-14 at 11 58 52

  6. Choose ZoomableMap Example and hit play Screenshot 2021-09-14 at 11 59 31

In some cases you might get a pink Map after you hit play.

It might be two things:

  1. You haven't installed URP
  2. Tile Material in Abstract Map is Default. You need to choose CustomLayerElevatedTerraineMaterial

RomanAtBrief avatar Sep 14 '21 11:09 RomanAtBrief

@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.

brnkhy avatar Oct 18 '21 11:10 brnkhy

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?

cappelnord avatar Nov 04 '21 13:11 cappelnord

Is the performance branch the latest version of MapBox for Unity?

duartebarbosadev avatar Nov 13 '21 13:11 duartebarbosadev

Why do I get only pink buildings? Screenshot 2021-11-13 at 19 20 57

duartebarbosadev avatar Nov 13 '21 19:11 duartebarbosadev

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

tplester avatar Mar 08 '23 02:03 tplester

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

RomanAtBrief avatar Mar 08 '23 12:03 RomanAtBrief