Enum SceneTree.StretchAspect

enum StretchAspect : int { ... }

Enum members

NameDescription
stretchAspectExpand Expand in both directions, retaining the same aspect ratio. This prevents distortion while avoiding black bars.
stretchAspectIgnore Fill the window with the content stretched to cover excessive space. Content may appear stretched.
stretchAspectKeep Retain the same aspect ratio by padding with black bars on either axis. This prevents distortion.
stretchAspectKeepHeight Expand horizontally. Top/bottom black bars may appear if the window is too tall.
stretchAspectKeepWidth Expand vertically. Left/right black bars may appear if the window is too wide.