AspectRatioResizeContainer
I

Publisher

iceflower

AspectRatioResizeContainer

2D
UI Layout Container AspectRatio Resize MinimumSize Cover Children

The AspectRatioContainer allows his own size to be smaller than the children, which causes neighboring UI elements to be covered. This new node type will extend the existing AspectRatioContainer and update it's own minimum size based on the children. This works except for STRETCH_MODE_COVER. You are also not able to use the property custom_minimum_size anymore as it is used to set the minimum size. For more see https://kenyoni-software.github.io/godot-addons/addons/aspect_ratio_resize_contain...

Godot Addons

maintained License: MIT documentation

Download here.

You can find a documentation with examples and detailed information here.

License

MIT License


[!NOTE]
Godot 4.3. or lower
When you import a plugin or open a Godot project for the first time, you may encounter errors due to plugin behavior. This occurs because most plugins rely on preload functionality, which cannot load assets during the initial import. To resolve this issue and ensure proper functionality, simply reload the project. Once reloaded, the errors will disappear.

Addons