Click or drag to resize

TextureButtonStretchModeEnum Enumeration

[Missing <summary> documentation for "T:Godot.TextureButton.StretchModeEnum"]

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public enum StretchModeEnum
Members
  Member nameValueDescription
Scale0

Scale to fit the node's bounding rectangle.

Tile1

Tile inside the node's bounding rectangle.

Keep2

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

KeepCentered3

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

KeepAspect4

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

KeepAspectCentered5

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

KeepAspectCovered6

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

See Also