Find how much screen space an object is taking up

Is there a way to find out how much 2D screen space an object is taking up? I’m trying to make sure that my dialog boxes don’t overlap the player or the npc/object that the player is interacting with. I know how to get the position of each, in screen space, but I don’t know how to determine if the dialog box is overlapping the bounds of either of the two

hello my friend first you need know the bounce of the object in 3d space i am sure mesheas has get bounce function is returning the bounce points but if not you can create a box as child of the mesh this indeed has the get bounce function so if you have this 3d location you can transform into screen space is great

cheers