I’m making a UI system for fun, and I have run into a design problem.
My touch events are delivered downstream (Top most UI elements receive touches first), however my UI element visibility is going upstream (Setting bottom most UI element visible to false will hide all the elements it contains)
The problem is that I need to check if the UI element is visible when touch is received. Whats the approach you guys would take?