I am having a basic sprite, which I add some details to during runtime.
I don't know if this is the best way, but I currently do this by adding the different sprites as childs and setting the local coordinates to get them to the right position.
It is intended that some of them stick out my basic sprite.
I now want to get the height and width of the total thing.
So e.g. if my basic sprite (green shape) is 200 pixels wide, and one detail child sprite sticks out by 50 pixels on the right side (blue shape), I want to get 250 pixels.
It this possible somehow?
PS: Im using Godot 2
Edit: Unfortunately I didn't mention that I'm actually not using Sprite but Sprite3D.
I thought this way it would be easier to explain and I thought I could just adopt it for my case because Sprite3D and Sprite basically have the same API. Looks like that wasn't a good decision.