Question by
asdasdqweqwe · Nov 05, 2016 at 09:40 PM ·
uiinteractionevent triggering
Non-interactive button still responds to event triggers
I have a button on a canvas. The canvas has a "Canvas Group" component. After setting the Canvas Group "interactable" option to false the buttons cannot be clicked (as they shouldn't) but they still respond to event triggers, namely "Pointer Enter" events. How do I disable that?
Comment
Best Answer
Answer by asdasdqweqwe · Nov 20, 2016 at 11:10 AM
The reason for that is the "Blocks Raycast" parameter.
Blocking raycasts also means it fires any events that result from that blocking, i.e. a pointer entering the zone.
Disabling that fixes my problem.