Skybox light reflect question

When i change the skybox in “Window → Lighting → Skybox”
the light will affect to gameObject.

However, when i add “Skybox” component in my main camera,
there are no light affect with this way(it still according to " Window → Lighting → Skybox").

I made my UI button in order to change my skybox. And i want the light effect through skybox. How can i do it through code, ty

push

push

push

  1. pusing the tread up is NOT the way to go…
  2. RenderSettings.skybox
    Unity - Scripting API: RenderSettings.skybox

Actually, i tried it before i ask. But it still didn’t work.

In Edit Mode with skybox - 10

In EditMode with skybox3

In Edit mode with skybox 3 and change to skybox 10 through code

Scripts
2226391--148302--螢幕快照 2015-07-29 上午11.28.32.png

You can see that is still absorbed my skybox 3 light after i change my skybox through code with render setting

Reading the Documentation IS THE WAY TO GO.

1 Like

holy XXXX i success after i re-open the unity.

In the beginning i just try

void DynamicGI.UpdateEnvironment()
{
}

///Actuallt, it should be

void Start
{
   DynamicGI.UpdateEnviroment();
}

void UpdateEnviroment()
{
   RenderSettings.skybox = skyMat[3];
}