I'm looking at ways to "cull" UI panels based on whether they are visible by the camera or not. It seems like unity itself is not culling them out, at least the drawcalls incurred by uipanels which are not in the view frustum are still accounted for.
I would like to enable and disable the uipanels based on whether their world position bounds are visible by the camera, but to do that I need to get at the world bounds of the panel. What would be the best way to do that ?