keepSize

    The minimum size will be equal to texture size, i.e. TextureRect can’t be smaller than the texture.

    TextureRect.swift:15
    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.