Reply To: Blocking objects confusion

Home Forums Books Unity 3D UI Essentials Blocking objects confusion Reply To: Blocking objects confusion


Right first, the answer to your query is a CanvasGroup.  it is the only component that will actively block raycasts from passing through it.

You simply add it to the UI control (or grouping GO the UI is attached to) to stop raycasts (all raycasts) passing through the Rect Transform of the GO by selecting the “Block Raycasts” parameter.

The Blocking option only affects other elements within the view of the camera the UI is attached to, similar to Camera layers and depth flags.


Hope this helps.

Simon (Darkside) Jackson