Hello! My goal is to create a grid of nxn ColorRects, that fill said grid.
I created a scene with a GridContainer and tried to add ColorRects to it, but without changing their Min Size properties the container shrinks them to size 0.
So I tried to create a custom ColorRect node that has a Min Size proportional to its parent's size, but there is a problem, when the size of the container is given by anchors (full rect layout for example) the size of the rect of said container (using get_rect().size) returns 0, which was really unexpected.
Ideally I would define the size of the container and the amount of columns and rows and the items would be downsized just enough to fit the nxm resulting amount of children.
What I am doing wrong?