From 469f398e7016de3ec654498e3132fa57e5935d48 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Fri, 17 Apr 2020 23:14:03 +0200 Subject: [PATCH] Document how to workaround UI anchor issues when using BackBufferCopy This closes #6880. (cherry picked from commit f8a413bb1f97767c336bad1a95f59463bebbd87b) --- doc/classes/BackBufferCopy.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/BackBufferCopy.xml b/doc/classes/BackBufferCopy.xml index c3194ed6468..30540b23c87 100644 --- a/doc/classes/BackBufferCopy.xml +++ b/doc/classes/BackBufferCopy.xml @@ -5,6 +5,7 @@ Node for back-buffering the currently-displayed screen. The region defined in the BackBufferCopy node is bufferized with the content of the screen it covers, or the entire screen according to the copy mode set. Use the [code]texture(SCREEN_TEXTURE, ...)[/code] function in your shader scripts to access the buffer. + [b]Note:[/b] Since this node inherits from [Node2D] (and not [Control]), anchors and margins won't apply to child [Control]-derived nodes. This can be problematic when resizing the window. To avoid this, add [Control]-derived nodes as [i]siblings[/i] to the BackBufferCopy node instead of adding them as children.