Revisiting Mapbox for Unity and can't even get basics to run.
Note: If this is a bug or support ticket, please provide the following information:
- Unity version: 2020.1.8f1
- Scripting Runtime Version:
- Scripting Backend:
- Api Compatibility Level:
- Mapbox SDK version: 2.1.1
- The platform you're building to: Windows/Mac/iOS
- A description of what you're trying to do: I just want to get Unity running with Mapbox so I can evaluate some of the examples.
- Steps to recreate the bug if appropriate: See Below
- Links to your logs are also helpful:
- Create new Unity Project (2020.1.8f1)
- Brand new project builds (Blank Sample Scene). No errors.
- Import Mapbox (mapbox-unity-sdk_v2.1.1.unitypackage)
- Receive the following errors:
- Assets/GoogleARCore/SDK/InstantPreview/Scripts/InstantPreviewManager.cs(32,23): error CS0234: The type or namespace name 'SpatialTracking' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
- Assets/UnityARInterface/Scripts/ARKitInterface.cs(26,17): error CS0246: The type or namespace name 'ARBackgroundRenderer' could not be found (are you missing a using directive or an assembly reference?)
- Assets/UnityARInterface/ARRemote/Scripts/ARRemoteEditorInterface.cs(40,17): error CS0246: The type or namespace name 'ARBackgroundRenderer' could not be found (are you missing a using directive or an assembly reference?)
- Assets/GoogleARCore/SDK/Scripts/ARCoreBackgroundRenderer.cs(43,17): error CS0246: The type or namespace name 'ARBackgroundRenderer' could not be found (are you missing a using directive or an assembly reference?)
- Assets/UnityARInterface/Scripts/ARCoreInterface.cs(51,17): error CS0246: The type or namespace name 'ARBackgroundRenderer' could not be found (are you missing a using directive or an assembly reference?)
That is from just importing the Mapbox Unity SDK into Unity.
I had terrible trouble with the AR part of the Mapbox package, you should try importing only the Mapbox part of the mapbox unity package and not the AR part. If you want to use AR with mapbox the AR foundation part of unity works well with it.
Thank you. I wanted to evaluate the AR samples provided by Mapbox. Seems close to ridiculous that one can't simply open a sample file that is released as a demonstration of Mapbox capabilities. We went through a tremendous amount of grief two years ago trying to put together a proof of concept. After a month we finally got a table top example done where we could have a vehicle "drive" on a map. Couldn't get enough accomplished so we went with a Leaflet solution and left out the AR table top capabilities. Thought it would be a better experience after two years. Thought wrong...........Thank you again. Will give it a few more attempts then its on to something else (again). Too bad, there is a lot of promise if this can be delivered. Peace.
I'm sorry to say it but, as you noted, we haven't had a chance to work on AR stuff for a long time. I would love to get back to that at some point but it'll definitely be after the performance work ongoing at the moment.
It still isn't fixed. I am going to try to use an older version.
"We haven't had a chance to fix this issue, so we are closing the issue"
??
for anyone getting this error in 2023 @JonFaull solution worked, just import the mapbox without AR stuff and it works.
This is not the solution. I need to use AR stuff. I tried with Unity 2021 and 2022 and both are still broken.
I can't even get through offical MapBox tutorial with it (Build a Unity 3D game with Mapbox (2/22)). AR stuff is something that most of developers would want to use. I can't go back to Unity 2019 (this is the last version that still had ARBackgroundRenderer) and work with that.
@brnkhy Please reopen this and fix it... You can either remove dependency on this class or create your own class that will replace that old one
This is not the solution. I need to use AR stuff. I tried with Unity 2021 and 2022 and both are still broken.
I can't even get through offical MapBox tutorial with it (Build a Unity 3D game with Mapbox (2/22)). AR stuff is something that most of developers would want to use. I can't go back to Unity 2019 (this is the last version that still had ARBackgroundRenderer) and work with that.
@brnkhy Please reopen this and fix it... You can either remove dependency on this class or create your own class that will replace that old one
Can't offer a solution but I have this working on Unity 2022.3. Project seems long dead in Unities eye though. Only suggestion is important the minimal amount of assets from the package.
Project seems long dead in Unities eye though
I know it's popular to blame Unity for everything these days, but Mapbox is not owned by Unity and I assume they themselves developed integration to the engine. This is still not fixed, though, even though the ticket is closed.
Project seems long dead in Unities eye though
I know it's popular to blame Unity for everything these days, but Mapbox is not owned by Unity and I assume they themselves developed integration to the engine. This is still not fixed, though, even though the ticket is closed.
Yes true, I meant mapbox.
I wanted my students to learn mapbox with unity and try the AR features. But this is really critical not to use the mapbox sdk. Very sad about that...