Max Size Container 1.0 2D Tools 3.4 Community
Submitted by user MattUV; MIT; 2022-05-02
A custom Container node for Godot Egine 3.x, to limit the size of children nodes.
All Control nodes have a rect_min_size property, but they lack the rect_max_size. The MaxSizeContainer aims at solving this issue.
To be limited in size, a Control node must be child of a MaxSizeContainer.
INSTRUCTIONS:
- From the editor, press Add a new node, and select MaxSizeContainer.
Note: to add the Container from script, you must use this code:
var MaxSizeContainer = preload("res://addons/MaxSizeContainer/max_size_container.gd")
add_child(MaxSizeContainer.new())
- Add any Control node as a child of MaxSizeContainer.
Note: only one (1) child is supported
- Select the maximum size, and how you want the child node aligned when it reaches the maximum size. (-1 means no limit)
View files Download Submit an issue Recent Edits