TextureRectStretchModeEnum Enumeration |
[Missing <summary> documentation for "T:Godot.TextureRect.StretchModeEnum"]
Namespace: Godot
public enum StretchModeEnum
Member name | Value | Description | |
---|---|---|---|
ScaleOnExpand | 0 | Scale to fit the node's bounding rectangle, only if expand is true. Default stretch_mode, for backwards compatibility. Until you set expand to true, the texture will behave like . | |
Scale | 1 | Scale to fit the node's bounding rectangle. | |
Tile | 2 | Tile inside the node's bounding rectangle. | |
Keep | 3 | The texture keeps its original size and stays in the bounding rectangle's top-left corner. | |
KeepCentered | 4 | The texture keeps its original size and stays centered in the node's bounding rectangle. | |
KeepAspect | 5 | Scale the texture to fit the node's bounding rectangle, but maintain the texture's aspect ratio. | |
KeepAspectCentered | 6 | Scale the texture to fit the node's bounding rectangle, center it and maintain its aspect ratio. | |
KeepAspectCovered | 7 | Scale the texture so that the shorter side fits the bounding rectangle. The other side clips to the node's limits. |