You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently rusty_engine doesn't expose a way to change the background color!
You can work around it by making a solid-color image, loading it as a sprite, scaling it big enough to fill the window, and making sure it is on the bottom layer.
The reason it isn't exposed yet is that the background part is not part of Bevy's Window struct, where we'd kind of expect it to be. The reason it isn't part of the struct is that the "background color" is actually the "clear color" for the camera that is drawing into the window (you can have any number of cameras in Bevy, but Rusty Engine only creates one). I may add functionality to set that it, though. Maybe add it as a method like game.set_background_color(...) 😄 Since I kind of want to do that anyway, I'll leave this issue open as a reminder.
Hi
I was trying to build some game for a deep space, wanted to know , how can i change background color of game?
currently i couldn't figure it out
Thanks for help
The text was updated successfully, but these errors were encountered: