Переглянути джерело

Merge pull request #94331 from KoBeWi/parent_is_visible_but_what_even_is_a_parent

Clarify `is_visible_in_tree()` in CanvasItem
Rémi Verschelde 1 рік тому
батько
коміт
44cb48eaae
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      doc/classes/CanvasItem.xml

+ 1 - 0
doc/classes/CanvasItem.xml

@@ -525,6 +525,7 @@
 			<return type="bool" />
 			<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]).
+				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>
 		</method>
 		<method name="make_canvas_position_local" qualifiers="const">