chang background from day to night?

how can i change background image from day to night ? my background image is 2d background

In your ‘daynighttransition’ script, be sure to have two public texture variables, one for the day and one for the night.

Whenever you decide, just change the texture in your ‘background’ from one to the other.

Or make a Texture similar to fallof Texture from the TonnLighting. So Then Make one part Half Day other Night like this one : [2896-dn+fall-off.png|2896]

And then make an animation that makes the Texture start from day side to night side and then return it back to top of the Texture.

Have the Texture on a block of cube
Then create a Animation like I said.