Table of Contents

Enum TextureRect.StretchModeEnum

Namespace
Godot
Assembly
GodotSharp.dll
public enum TextureRect.StretchModeEnum : long

Fields

Keep = 2

The texture keeps its original size and stays in the bounding rectangle's top-left corner.

KeepAspect = 4

Scale the texture to fit the node's bounding rectangle, but maintain the texture's aspect ratio.

KeepAspectCentered = 5

Scale the texture to fit the node's bounding rectangle, center it and maintain its aspect ratio.

KeepAspectCovered = 6

Scale the texture so that the shorter side fits the bounding rectangle. The other side clips to the node's limits.

KeepCentered = 3

The texture keeps its original size and stays centered in the node's bounding rectangle.

Scale = 0

Scale to fit the node's bounding rectangle.

Tile = 1

Tile inside the node's bounding rectangle.