Enumeration Casemigueldeicaza.swiftgodot 0.45.0SwiftGodot
keepSize
The minimum size will be equal to texture size, i.e. TextureRect
can’t be smaller than the texture.
case keepSize
Other cases
case ignoreSize
The size of the texture won’t be considered for minimum size calculation, so the
TextureRect
can be shrunk down past the texture size.case fitWidth
The height of the texture will be ignored. Minimum width will be equal to the current height. Useful for horizontal layouts, e.g. inside
HBoxContainer
.case fitWidthProportional
Same as .expandFitWidth, but keeps texture’s aspect ratio.
case fitHeight
The width of the texture will be ignored. Minimum height will be equal to the current width. Useful for vertical layouts, e.g. inside
VBoxContainer
.case fitHeightProportional
Same as .expandFitHeight, but keeps texture’s aspect ratio.