Is there anyway in unity remote config to do the following:
- Change the environment itself upon pull a remote settings?
- Have some editor code listen to changes on environments in order to define symbols per environment or make some editor changes based on the selected environment?
Hi,
I need a lil more info, do you want to get multiple different environments during the same unity runtime session?
- upon pull a remote settings?
If I understand correctly, if you change the environment in the RemoteConfig UI?
That’s not an intended use-case and as I replied in the other thread, I recommend you switch to the Deployment package which supports most of the UGS services for deployment purposes.
If you want to simply change what environment you’re pulling from, you can do so when you initialize (doc here).
You can check this post here as well.
The environments api has callbacks you can use that to listen to changes as you work in the editor.
Environment selection has the following prioritization:
InitializationOptions (code) >> Environment Selector (project settings > services > environment) >> default environment ("production" ).
Defines symbols per environment should drive the above and not the other way around in general, since the code itself needs recompilation.
Of course, I can try to provide more info /guidance with more details. Cheers