Explorar o código

Document how to workaround UI anchor issues when using BackBufferCopy

This closes #6880.

(cherry picked from commit f8a413bb1f97767c336bad1a95f59463bebbd87b)
Hugo Locurcio %!s(int64=5) %!d(string=hai) anos
pai
achega
469f398e70
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      doc/classes/BackBufferCopy.xml

+ 1 - 0
doc/classes/BackBufferCopy.xml

@@ -5,6 +5,7 @@
 	</brief_description>
 	</brief_description>
 	<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.
 		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>
 	</description>
 	<tutorials>
 	<tutorials>
 	</tutorials>
 	</tutorials>