Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Custom Mapbox Style Not Applying in Unity SDK, Works Correctly in Web (iframe)

Aperta
#1,964 22 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
csharp, unity
Ambito
game-dev

Direzione di ricerca

Inizia riproducendo il problema nel Unity SDK con Unity 6000.0.43f1, SDK v2.1.1, l’URL pubblica mapbox://styles/... e l’Editor su macOS Sonoma; confronta il risultato con l’iframe web funzionante. Traccia il campo Style della mappa Unity attraverso il caricamento dello stile e il rendering, e considera il problema risolto quando lo stile personalizzato viene visualizzato invece di una mappa nera, predefinita o caricata solo parzialmente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
C#
Stelle
784
Fork
231
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mapbox/mapbox-unity-sdk

Tutte le issue di mapbox/mapbox-unity-sdk

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.