I’ve been trying to change my background color through my script and it hasn’t been working. Any ideas guys
Been a while since I went through that section but, if you’re using a mesh to project the background on then you’ll want to get ahold of a material component. On the other hand, if you’re using a skybox you’ll want to get ahold of that instead.
I think what you want to do if you are using a Sprite for the background is…
GetComponet<SpriteRenderer>().color = new Color([Value of Color Here]);
if you are just relying on the Camera for the color of the background…
mainCamera.backgroundColor = new Color([Value of Color Here]);
Changing a skybox appears more complicated and you would most likely need to google what is necessary to change that by script. It appears to be a material change that is made to the RenderSettings.