Merge pull request #7021 from kastaldi/patch-1

* Full Rect option in Background section

Corrected the "Full Rect" option location in Background section because it was wrong in Godot 4.

---------

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
This commit is contained in:
Max Hilbrunner
2023-03-23 04:41:43 +01:00
committed by GitHub

View File

@@ -15,7 +15,7 @@ The default gray background is not very appealing, so let's change its color.
One way to do this is to use a :ref:`ColorRect <class_ColorRect>` node. Make it
the first node under ``Main`` so that it will be drawn behind the other nodes.
``ColorRect`` only has one property: ``Color``. Choose a color you like and
select "Layout" -> "Full Rect" so that it covers the screen.
select "Layout" -> "Anchors Preset" -> "Full Rect" either in the toolbar at the top of the viewport or in the inspector so that it covers the screen.
You could also add a background image, if you have one, by using a
``TextureRect`` node instead.