浏览代码

Document how to resize a SubViewportContainer to avoid stretching

This closes #27534.

(cherry picked from commit f818a99d0b290319665f0cfb4f7024b451fd78aa)
Hugo Locurcio 5 年之前
父节点
当前提交
469c1b5f5e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      doc/classes/ViewportContainer.xml

+ 1 - 0
doc/classes/ViewportContainer.xml

@@ -5,6 +5,7 @@
 	</brief_description>
 	<description>
 		A [Container] node that holds a [Viewport], automatically setting its size.
+		[b]Note:[/b] Changing a ViewportContainer'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>
 	<tutorials>
 	</tutorials>