mapbox-unity-sdk
mapbox-unity-sdk copied to clipboard
Unity - Mapbox environment "Profiles"
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