Skip to content

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

@subhanahmed0

Description

@subhanahmed0

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions