Imagine you'd like to highlight a 3D GameObject by drawing a (translucent) UI panel above it. The UI panel should cover the object exactly. Therefore the object's bounds, as it is seen from the camera, are needed. How do you get these bounds? (In word space, or screen, viewport or canvas space, any way's fine).
My problem is that [Collider|Renderer|Mesh].bounds does not take the camera's position into account. Hence, depending on the camera's location and the object's dimensions, the bounds are more or less off. Do you know how this can be fixed?
Any advise is very much appreciated. Thank you!