From ae9f2bd9dfdf42ae3b7677922c8e83c18481dd34 Mon Sep 17 00:00:00 2001 From: Malcolm Anderson Date: Thu, 7 Nov 2024 20:15:41 -0800 Subject: [PATCH] Add note to `CanvasItem.clip_children` about nesting Add CanvasGroup information to clipping note --- doc/classes/CanvasItem.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/CanvasItem.xml b/doc/classes/CanvasItem.xml index 78e9c392db7..95cbc55049f 100644 --- a/doc/classes/CanvasItem.xml +++ b/doc/classes/CanvasItem.xml @@ -594,6 +594,7 @@ Allows the current node to clip child nodes, essentially acting as a mask. + [b]Note:[/b] Clipping nodes cannot be nested or placed within [CanvasGroup]s. If an ancestor of this node clips its children or is a [CanvasGroup], then this node's clip mode should be set to [constant CLIP_CHILDREN_DISABLED] to avoid unexpected behavior. The rendering layers in which this [CanvasItem] responds to [Light2D] nodes.