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:
commit
44cb48eaae
1 changed files with 1 additions and 0 deletions
|
@ -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">
|
||||||
|
|
Loading…
Reference in a new issue