summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-07-01 18:28:53 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-07-01 18:28:53 +0200
commit09f4dff2f41c346790ea7aca5dafbe9d21a8dff6 (patch)
treecd0ccf973233862f72ef30bbee59c137f48c1cb7
parent6a12548e3429a1254fe74b2f1e3a8f2d59272996 (diff)
parenta917246d5b5aea684bae7cd78acc801174da3970 (diff)
downloadredot-engine-09f4dff2f41c346790ea7aca5dafbe9d21a8dff6.tar.gz
Merge pull request #93804 from AdriaandeJongh/y-sorting-lower-higher-inverted-fix
[Doc] Fix inverted Y position description of y-sorting
-rw-r--r--doc/classes/CanvasItem.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/CanvasItem.xml b/doc/classes/CanvasItem.xml
index 207045b065..8bee6c3470 100644
--- a/doc/classes/CanvasItem.xml
+++ b/doc/classes/CanvasItem.xml
@@ -623,8 +623,8 @@
[b]Note:[/b] For controls that inherit [Popup], the correct way to make them visible is to call one of the multiple [code]popup*()[/code] functions instead.
</member>
<member name="y_sort_enabled" type="bool" setter="set_y_sort_enabled" getter="is_y_sort_enabled" default="false">
- If [code]true[/code], this and child [CanvasItem] nodes with a lower Y position are rendered in front of nodes with a higher Y position. If [code]false[/code], this and child [CanvasItem] nodes are rendered normally in scene tree order.
- With Y-sorting enabled on a parent node ('A') but disabled on a child node ('B'), the child node ('B') is sorted but its children ('C1', 'C2', etc) render together on the same Y position as the child node 'B'. This allows you to organize the render order of a scene without changing the scene tree.
+ If [code]true[/code], this and child [CanvasItem] nodes with a higher Y position are rendered in front of nodes with a lower Y position. If [code]false[/code], this and child [CanvasItem] nodes are rendered normally in scene tree order.
+ With Y-sorting enabled on a parent node ('A') but disabled on a child node ('B'), the child node ('B') is sorted but its children ('C1', 'C2', etc) render together on the same Y position as the child node ('B'). This allows you to organize the render order of a scene without changing the scene tree.
Nodes sort relative to each other only if they are on the same [member z_index].
</member>
<member name="z_as_relative" type="bool" setter="set_z_as_relative" getter="is_z_relative" default="true">