Custom Mapbox Style Not Applying in Unity SDK, Works Correctly in Web (iframe)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Start by reproducing the issue in the Unity SDK using Unity 6000.0.43f1, SDK v2.1.1, the public mapbox://styles/... URL, and the Editor on macOS Sonoma; compare the result with the working web iframe. Trace the Unity map Style field through style loading and rendering, and consider the issue done when the custom style renders instead of a black, default, or partially loaded map.
Written by the indexing model from the issue text.
Description
Description
When using a custom Mapbox style in the Unity SDK, the style does not apply correctly (or falls back to the default style). However, the same style works as expected when loaded via a Mapbox iframe on the web.
This suggests a possible issue with style compatibility, loading, or configuration specific to the Unity SDK.
Steps to Reproduce
Create a custom style in Mapbox Studio.
Publish the style.
Copy the style URL (e.g. mapbox://styles/username/style_id).
In Unity:
Use the Mapbox Unity SDK
Assign the custom style URL to the map’s Style field
Run the scene.
Expected Behavior
The map in Unity should render using the custom Mapbox style, matching the appearance seen on the web.
Actual Behavior
The custom style is not applied in Unity:
The map either renders black map
The style partially loads / fails silently
The same style URL renders correctly when used in a web iframe.
Environment
Unity Version: (6000.0.43f1)
Mapbox Unity SDK Version: (v2.1.1)
Platform: (Editor)
OS: (macOS Sonoma)
Style Details
Style created in Mapbox Studio
Style visibility set to Public
Style URL format: mapbox://styles/...
Works correctly in web iframe
- Dominant language
- C#
- Stars
- 785
- Forks
- 231
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mapbox/mapbox-unity-sdk
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
mapbox/mapbox-unity-sdk#2000 · 2 comments ·
-
Traffic Data Mismatch Between Mapbox Traffic Tiles and Directions API AnnotationsMay be free again @brnkhy claimed this 105 days ago, and no pull request is open. Open
mapbox/mapbox-unity-sdk#1993 · 8 comments · 1 assignee ·
-
I need to implement search functionality just like regular google maps.May be free again @brnkhy claimed this 105 days ago, and no pull request is open. Open
mapbox/mapbox-unity-sdk#1992 · 1 comment · 1 assignee ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
mapbox/mapbox-unity-sdk#1990 · 9 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
mapbox/mapbox-unity-sdk#1986 · 10 comments ·
All issues in mapbox/mapbox-unity-sdk
Similar issues
-
needs-area
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Azure/typespec-azure#5695 ·
Maintainers usually reply within 1 day
-
bug gui macos priority:low
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
OpenTabletDriver/OpenTabletDriver#5147 ·
Maintainers usually reply within 1 day
-
:watch: Not Triaged async-task-programming/subsvc dotnet-csharp/svc
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Python: Bug: AnnotationContent and StreamingAnnotationContent to_element writes CitationType.X, so annotations in a rendered chat history fail to parsePossibly taken A pull request linked to this issue is open or already merged. Openpython triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
microsoft/semantic-kernel#14590 ·
Maintainers usually reply within 3 days
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day