From 4b2ffdd20854aca485b8ec7d90757991b9beb692 Mon Sep 17 00:00:00 2001 From: kobewi Date: Sat, 13 Jul 2024 23:26:29 +0200 Subject: [PATCH] Clarify is_visible_in_tree() in CanvasItem --- doc/classes/CanvasItem.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/CanvasItem.xml b/doc/classes/CanvasItem.xml index 8bee6c34706..186ee1b9c4a 100644 --- a/doc/classes/CanvasItem.xml +++ b/doc/classes/CanvasItem.xml @@ -525,6 +525,7 @@ 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.