Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Merge pull request #122939 from Calinou/doc-update-demo-links

Thaddeus Crews6d2235d8e1ea
diff --cc doc/classes/TextureRect.xml
index c51cc54e96a,9e66b5d983b..5a53f2e3420
--- a/doc/classes/TextureRect.xml
+++ b/doc/classes/TextureRect.xml
@@@ -5,10 -5,9 +5,10 @@@
</brief_description>
<description>
A control that displays a texture, for example an icon inside a GUI. The texture's placement can be controlled with the [member stretch_mode] property. It can scale, tile, or stay centered inside its bounding rectangle.
+ By default, the minimum size of [TextureRect] is equal to the assigned [member texture]'s size. If you want it to be smaller, set [member expand_mode] to [constant EXPAND_IGNORE_SIZE].
</description>
<tutorials>
- <link title="3D Voxel Demo">https://godotengine.org/asset-library/asset/2755</link>
+ <link title="Voxel Game Demo">https://store.godotengine.org/asset/godot-foundation/voxel-game-demo/</link>
</tutorials>
<members>
<member name="expand_mode" type="int" setter="set_expand_mode" getter="get_expand_mode" enum="TextureRect.ExpandMode" default="0" experimental="Using [constant EXPAND_FIT_WIDTH], [constant EXPAND_FIT_WIDTH_PROPORTIONAL], [constant EXPAND_FIT_HEIGHT], or [constant EXPAND_FIT_HEIGHT_PROPORTIONAL] may result in unstable behavior in some [Container] controls. This behavior may be re-evaluated and changed in the future.">