I've been trying to get my head around CanvasItems, as they may end up being what I need to use for my game. As a first try, I created a node that extends a Node2D and overrode _draw to draw a square. The examples I found showed hard-coded bounds. But I wanted to draw the "whatever" into the bounds as positioned in the main scene. So I looked to find how to get the bounds that had been specified in the parent scene.
I found nothing. It looks like there used to be such a function that no longer exists.
I discovered that the transform position seems to correspond to the center of the object. Similarly, resizing seems to affect the scale. But a transform has to operate on something. So I did some experiments with unity scale, etc to try to work out what was going on, and it seems that the bounds for Node2D maps (-32,-32) - (32,32) into the scene bounds. This seems like nice programmer-ish numbers. But it's empirical, and I may be misunderstanding.
I have looked all over and haven't yet found anything that actually documents this. I guess my question is: is it true that a Node2D coordinate system operates as I have empirically worked out, extending from (-32,-32) - (32,32) as far as the main scene bounds go?
Is there any documentation for this? I would love to read about this more in detail, if possible.
Also, do I simply have the wrong idea about what the rectangle sized and positioned in the scene for a sub-scene is supposed to signify (if it's not where the item will draw to)?
Thanks!