SceneTreeStretchAspect Enumeration |
[Missing <summary> documentation for "T:Godot.SceneTree.StretchAspect"]
Namespace: Godot
public enum StretchAspect
Member name | Value | Description | |
---|---|---|---|
Ignore | 0 | Fill the window with the content stretched to cover excessive space. Content may appear stretched. | |
Keep | 1 | Retain the same aspect ratio by padding with black bars on either axis. This prevents distortion. | |
KeepWidth | 2 | Expand vertically. Left/right black bars may appear if the window is too wide. | |
KeepHeight | 3 | Expand horizontally. Top/bottom black bars may appear if the window is too tall. | |
Expand | 4 | Expand in both directions, retaining the same aspect ratio. This prevents distortion while avoiding black bars. |