Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the option to override the Default Clear Color in 2D Scenes #11739

Open
Arnklit opened this issue Feb 11, 2025 · 4 comments
Open

Add the option to override the Default Clear Color in 2D Scenes #11739

Arnklit opened this issue Feb 11, 2025 · 4 comments

Comments

@Arnklit
Copy link

Arnklit commented Feb 11, 2025

Describe the project you are working on

A 2D game in production

Describe the problem or limitation you are having in your project

When our artists are working on assets they want to test them with various backgrounds, but they can't easily do that.

Currently you can only change the background by going into Project Settings -> Environment -> Default Clear Color which is cumbersome and is also changing the project setting which is not ideal.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Similar to how you can have a preview sun and environment in 3D, there could be an option to override the Default Clear Color in the viewport.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

Mock-up:

Image

If this enhancement will not be used often, can it be worked around with a few lines of script?

This would be used often

Is there a reason why this should be core and not an add-on in the asset library?

This is about improving the default 2D editor experience.

@Dynamic-Pistol
Copy link

Dynamic-Pistol commented Feb 11, 2025

isn't it a project setting?
search rendering/environment/defaults/default_clear_color in the project settings

edit: nvm didn't notice the problem description
i still don't get the need to change the background color that often, you will often stick to just 1 color anyways for the final game

@Arnklit
Copy link
Author

Arnklit commented Feb 11, 2025

isn't it a project setting? search rendering/environment/defaults/default_clear_color in the project settings

edit: nvm didn't notice the problem description i still don't get the need to change the background color that often, you will often stick to just 1 color anyways for the final game

To be able to preview what a separate asset will look like on top of different colors. Lots of assets you will be working on will not end up displaying on top of the background color. Imagine your project background color is set to black, but you are currently working on a dark particle effect that will generally display on top of something bright, now you have to go into project settings to change it to a brighter color to get a feel for what it will look like and you will have to remember to change it back again and not accidentally commit the change to your other team members.

@Dynamic-Pistol
Copy link

Imagine your project background color is set to black, but you are currently working on a dark particle effect that will generally display on top of something bright, now you have to go into project settings to change it to a brighter color to get a feel for what it will look like and you will have to remember to change it back again and not accidentally commit the change to your other team members

makes sense, i could argue that the particle will be put in the final game which will use a black bg, but chances are you are using a sprite bg for the game already

btw this could also be used for 3d too if a sky is not visible

@mkh-user
Copy link

This is very useful for non-gaming applications, in most cases, in an application we need to have backgrounds that have different colors, and creating a ColorRect node for it in every scene is not optimal at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants