Click or drag to resize

AspectRatioContainerStretchModeEnum Enumeration

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

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

The height of child controls is automatically adjusted based on the width of the container.

HeightControlsWidth1

The width of child controls is automatically adjusted based on the height of the container.

Fit2

The bounding rectangle of child controls is automatically adjusted to fit inside the container while keeping the aspect ratio.

Cover3

The width and height of child controls is automatically adjusted to make their bounding rectangle cover the entire area of the container while keeping the aspect ratio.

When the bounding rectangle of child controls exceed the container's size and RectClipContent is enabled, this allows to show only the container's area restricted by its own bounding rectangle.

See Also