- Home /
Collider Blocking Worldspace Canvas?
I have buttons set up in a worldspace canvas and I've set the Blocking Objects to None and the Blocking Mask to Nothing. For some reason though when a Sphere Collider is placed in front of those buttons the graphic raycaster doesnt seem to pick them up and they won't highlight/aren't interactible. Do I need to do something else with my settings? I really want to avoid writing my own graphic raycaster when the unity one should do this for me easily enough.
Any thoughts on this?
EDIT
It seems like it might have to do with the fact that I'm using the Curved UI asset package. I ran a quick test to see if this problem would be present in the base canvas with the base graphic raycaster and it doesn't seem to be.
I'll look around on those forums and see if I can find anything but if anyone knows what the solution is here please let me know.
Answer by TSI25 · Aug 29, 2017 at 07:53 PM
It turns out that Curved UI is using a set of colliders and is raycasting in order to detect where the user would have clicked on a curved canvas, and so any colliders in the game will interfere with that UI.
Super obvious in retrospect XD
Your answer
Follow this Question
Related Questions
Scrollable, clickable overworld map 0 Answers
Blocking and not blocking input in new uGUI 4.6 1 Answer
Detect only UI button click 3 Answers
Allow Click Through some UI Elements 1 Answer
Make "polygon" collider for UI element 4 Answers