SceneTree.StretchAspect

Values

ValueMeaning
stretchAspectIgnore0

Fill the window with the content stretched to cover excessive space. Content may appear elongated.

stretchAspectKeep1

Retain the same aspect ratio by padding with black bars in either axes. No expansion of content.

stretchAspectKeepWidth2

Expand vertically. Left/right black bars may appear if the window is too wide.

stretchAspectKeepHeight3

Expand horizontally. Top/bottom black bars may appear if the window is too tall.

stretchAspectExpand4

Expand in both directions, retaining the same aspect ratio. No black bars.

Meta