Hello!
I've encountered a problem repeatedly where upon making an object programmatically and adding it as a child in ready, the object will retain its standard values.
For example. I put a for loop in the ready() function of a hboxcontainer. (100x1025 size inside a panelcontainer) For each pass of the For loop it is suppose to generate a panel, set RectSize, give a name and then add it as a child.
Panel panel = new Panel();
panel.Name = "panel"+i; // i is from for loop.
panel.RectSize = new Vector2(100,100);
AddChild(panel)
During testing everything goes fine the panels are generated, given a name, but they retain 0,0 in size.
Additionally when I then try to run another for loop later in the ready to GetChildren() and then check the rect values the number of children shown is less than the first for loop is suppose to make (4 but shows only 2).
Whats going on here?