Click or drag to resize

SceneTreeStretchAspect Enumeration

[Missing <summary> documentation for "T:Godot.SceneTree.StretchAspect"]

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

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

Keep1

Retain the same aspect ratio by padding with black bars on either axis. This prevents distortion.

KeepWidth2

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

KeepHeight3

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

Expand4

Expand in both directions, retaining the same aspect ratio. This prevents distortion while avoiding black bars.

See Also