Best way to Check if Element is Visible Inside the Canvas?

Right now I’m disabling anything not visible to increase performance, but running into problems when something is nested down too deeply. I could reference each parent’s relative anchoredPosition going up until I find the cutoff point for the canvas, then send that back down and see if that child element is beyond the bounds, but I feel like there is a faster way.

Apple’s CGRectIntersectsRect bool, anybody? :stuck_out_tongue:

If it were efficient to write a generic function like that, I would think the UI would have it built in most likely… It’ll probably be far more performant to have situation-specific object disablers.

This seems to be a feature UT is working on for you. Something like it was in the b20 beta, but was removed b/c it was pretty buggy.