AspectRatioContainerStretchModeEnum Enumeration |
[Missing <summary> documentation for "T:Godot.AspectRatioContainer.StretchModeEnum"]
Namespace: Godot
public enum StretchModeEnum
Member name | Value | Description | |
---|---|---|---|
WidthControlsHeight | 0 | The height of child controls is automatically adjusted based on the width of the container. | |
HeightControlsWidth | 1 | The width of child controls is automatically adjusted based on the height of the container. | |
Fit | 2 | The bounding rectangle of child controls is automatically adjusted to fit inside the container while keeping the aspect ratio. | |
Cover | 3 | 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. |