Merge pull request #94331 from KoBeWi/parent_is_visible_but_what_even_is_a_parent

Clarify `is_visible_in_tree()` in CanvasItem
This commit is contained in:
Rémi Verschelde 2024-07-17 11:44:05 +02:00
commit 44cb48eaae
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -525,6 +525,7 @@
<return type="bool" /> <return type="bool" />
<description> <description>
Returns [code]true[/code] if the node is present in the [SceneTree], its [member visible] property is [code]true[/code] and all its ancestors are also visible. If any ancestor is hidden, this node will not be visible in the scene tree, and is therefore not drawn (see [method _draw]). Returns [code]true[/code] if the node is present in the [SceneTree], its [member visible] property is [code]true[/code] and all its ancestors are also visible. If any ancestor is hidden, this node will not be visible in the scene tree, and is therefore not drawn (see [method _draw]).
Visibility is checked only in parent nodes that inherit from [CanvasItem], [CanvasLayer], and [Window]. If the parent is of any other type (such as [Node], [AnimationPlayer], or [Node3D]), it is assumed to be visible.
</description> </description>
</method> </method>
<method name="make_canvas_position_local" qualifiers="const"> <method name="make_canvas_position_local" qualifiers="const">