diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-04-20 23:51:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-20 23:51:47 +0200 |
commit | 52b27da7a6a0667a0191377f80a9968d65f690c4 (patch) | |
tree | 69cdd3e7d6412a4c58c905abf50f90858d076abb | |
parent | b372227f063fccde8e6aa26d98369c443a2652dc (diff) | |
parent | f8a413bb1f97767c336bad1a95f59463bebbd87b (diff) |
Merge pull request #37974 from Calinou/doc-backbuffercopy-anchors
Document how to workaround UI anchor issues when using BackBufferCopy
-rw-r--r-- | doc/classes/BackBufferCopy.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/classes/BackBufferCopy.xml b/doc/classes/BackBufferCopy.xml index 1f7554f978..7cc6a5613b 100644 --- a/doc/classes/BackBufferCopy.xml +++ b/doc/classes/BackBufferCopy.xml @@ -5,6 +5,7 @@ </brief_description> <description> 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. </description> <tutorials> </tutorials> |