This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
+15 votes

Hello, I was wondering if there is a setting that can change the project's default background color so its not always grey. I was searching it, but the only thing I found was editor background color setting.

in Engine by (85 points)

3 Answers

+22 votes
Best answer

Are you talking about "Project settings" -> "Render" (Section) -> default_clear_color? It seems to do what you want, by setting the background color.

If you want to set it to an image, you should look into the WorldEnvironment node for 3D, and ParalaxLayer + Sprite + Texture::FLAG_REPEAT for 2D.

by (1,608 points)
selected by
Thanks for your answer, yeah, It was the default_clear_color... I think I'm getting blind :) Also thanks for the other info, someone else might find it useful in the future :)

Update: The path to the setting these days is Project Settings | Rendering | Environment | Default Clear Color

+18 votes

From code you can use: VisualServer.set_default_clear_color(Color(0.4,0.4,0.4,1.0))

by (855 points)
edited by

There are _ missing "VisualServer.setdefaultclear_color".

this is an old answer, from back when the Q&A was new. So most of us didn't understand the formatting back then and just assumed that random words in italics had underscores (_) around them. But I fixed it just now for future's sake. :)

Is there any way to get the default clear color?

not sure, but you can see it in Project Settings > Render

Worked for me, thanks

+1 vote

In Godot 4 you can use:

RenderingServer.set_default_clear_color(Color.DODGER_BLUE)
by (26 points)

Also through the editor:

Project Settings > General > Rendering > Environment > Default Clear Color

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.