Search Unity

Image and Collider compatibility

Discussion in 'UGUI & TextMesh Pro' started by TheHeftyCoder, Nov 24, 2020.

  1. TheHeftyCoder

    TheHeftyCoder

    Joined:
    Oct 29, 2016
    Posts:
    91
    Hello, I've currently set up a ScrollRect where I needed to put elements inside that are not UI. I've managed to set it up quite nicely, but I got just one issue. It seems that a typical IPointerClick event from a gameobject - that is inside the content of the scroll - with a collider doesn't propagate and is instead hidden. If I put an image inside that gameobject that has the collider, then the event is fired normally. Lastly, the event is fired normally if the gameobject with the collider isn't inside the view.

    Can somebody explain why this is happening? Is there a specific reason? In other words, can I somehow avoid adding that utility image or is it something necessary? Thanks a lot!