I’m having a hard time changing the skybox tint in code. I am using the following line:
RenderSetting.skybox.SetColor(“_Tint”, Color.red);
I just have this in the Start() function, yet when I run my code, the skybox does not change, I have a custom skybox material which is set in the Lighting tab.

Can anyone help me out here please?
1 Answer
1
The skybox shaders don’t use the same property names. If using the Procedural shader, then it’s _SkyTint. Can try something like this:
if (RenderSettings.skybox.HasProperty("_Tint"))
RenderSettings.skybox.SetColor("_Tint", Color.red);
else if (RenderSettings.skybox.HasProperty("_SkyTint"))
RenderSettings.skybox.SetColor("_SkyTint", Color.red);
That worked, thanks for the help @Jessespike
– JayFitz91