Browse Source

Document ViewportTexture flipping in TextureRect

Hugo Locurcio 5 năm trước cách đây
mục cha
commit
5589529cf3
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      doc/classes/TextureRect.xml

+ 1 - 0
doc/classes/TextureRect.xml

@@ -5,6 +5,7 @@
 	</brief_description>
 	<description>
 		Used to draw icons and sprites in a user interface. The texture's placement can be controlled with the [member stretch_mode] property. It can scale, tile, or stay centered inside its bounding rectangle.
+		[b]Note:[/b] You should enable [member flip_v] when using a TextureRect to display a [ViewportTexture]. Alternatively, you can enable [member Viewport.render_target_v_flip] on the Viewport. Otherwise, the image will appear upside down.
 	</description>
 	<tutorials>
 	</tutorials>