Camera background switching color for no reason on start!

Each time i do play on my game the Camera.BackgroundColor is changeing color for RGBA(28,3,1,0)

I never change the color of the camera background, i only use the GameObject of the Camera in my script… to make a Transition to Point A to B.

It happen everygame… and the Scene keep the new color after i stop the game… even if i switch it back in the scene… it will lose his settings… (I change my setting in scene while not in play and the next time i will hit play it will change the camera.backgroundcolor even if it’s play mode…)

It’s changeing the value of my Prefab too.

Is there a way to find who the fuck change my Camera.BackgroundColor… Can it be in a OnGUI ?

Plz i need help… it’s breaking the game at the moment :frowning:

That sounds very strange. Are you sure you dont have a script somewhere changing the background? Could it be a shader or skybox effect? If you have an empty scene does it still happen? If it does please report it and post the ticket here so I can take a look. Unity QA: Building quality with passion

i made a fix, i switched to SolidColor and set back the background color and there is no problem.

but the problem was
I was in 2D (Orthographic with SkyBox) 100% sure for no Background script that touch the camera.
It doesn’t happen in empty scene with the camera only!

1 Like

And randomly again the camera background color switch… with Solid Color on Orthographic Camera

Can you upload a simple project that has the issue here?
If you think it may be a bug then report it although I suspect its something in your project as I have not heard of this issue before.

How does my code can change the Prefab value ?

And it’s randomly appearing so i can still send it ? it took a lot of play / stop to make the background color to change randomly and I dont really know the Exact path to remake the problem.