Changing Environment LIghting Source at Runtime?

Hello I want to know if there is a way to change the environment lighting source at runtime. I can change the color under RenderSettings.ambientLight and the mode but not the source, like from skybox to color or visa versa.

Old thread but I found the answer in case anyone stumbles on this. It’s RenderSettings.ambientMode.

I would also like to know - there is nothing in the documentation about this

Just DynamicGI.UpdateEnvironment(); can fix it?