Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unity - Mapbox environment "Profiles" #1923

Open
lukeholmes1986 opened this issue Jun 16, 2024 · 0 comments
Open

Unity - Mapbox environment "Profiles" #1923

lukeholmes1986 opened this issue Jun 16, 2024 · 0 comments

Comments

@lukeholmes1986
Copy link

Within our project we have several different builds Dev/UAT etc depending on which build is being worked on dictates several env vars. One of the challenges we have faced is how can we manipulate the mapbox specific references. For example if i switch to UAT the token/tileset/style should all be dynamically updated. I was thinking of something like the below in the mapboxaccess class is there a better way to achieve this? The unity menu will wipe the token clear if i do try this as the env var doesnt exist before run time

get
{
if (_configuration == null)
{
_configuration = new MapboxConfiguration
{
AccessToken = EnvironmentManager.MAPBOX_TOKEN
};
}
return _configuration;

Unity version: 2020.3.26f1
Models of phones tested: Pixel 6
Android Version 12
Scripting Backend: Mono
Api Compatibility Level: 33
Mapbox SDK version: Mapbox 2.1.1
The platform you're building to: Android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant