Browse Source

Document how to resize a SubViewportContainer to avoid stretching

This closes #27534.
Hugo Locurcio 5 years ago
parent
commit
f818a99d0b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      doc/classes/SubViewportContainer.xml

+ 1 - 0
doc/classes/SubViewportContainer.xml

@@ -5,6 +5,7 @@
 	</brief_description>
 	</brief_description>
 	<description>
 	<description>
 		A [Container] node that holds a [SubViewport], automatically setting its size.
 		A [Container] node that holds a [SubViewport], automatically setting its size.
+		[b]Note:[/b] Changing a SubViewportContainer's [member Control.rect_scale] will cause its contents to appear distorted. To change its visual size without causing distortion, adjust the node's margins instead (if it's not already in a container).
 	</description>
 	</description>
 	<tutorials>
 	<tutorials>
 	</tutorials>
 	</tutorials>