So I'm looking over the Control-Gallery Demo, and see that the structure is:
Control
ColorRect
HSplitContainer (and so on...)
and I'm deeply confused as to why this is. 🙂 As I understand it, the HSplitContainer
is a Control node, and could serve as the top-level Node. (For that matter, it seems like any node could be at the top). I tried some experimentation, and changing the color of the ColorRect, realized that the HSplitContainer
had gaps/margins, which the color showed through. Okay, but ColorRect is also a Control Node, and presumably could be the top-level Node.
So is there some specific purpose to having a Control Node as the top? It seems like the ColorRect would work fine, and would have the exact same properties. Or is this just a convention?
For that matter, are there any conventions, or "rules", regarding top-level choice of node-type and structure? Or just whatever node works? Thanks.