Ambient source

Hi
I wondered if it was possible to be able to change ambient source from color to skybox through script? I was thinking of changing it depending on certain events but I can’t find a way to do it.

Thanks!

I think this is the line of code that you are looking for.

Camera.main.clearFlags = CameraClearFlags.Skybox;

Here below is the reference URL