I’ve been fiddling with this for a while now to no avail, partially due to the abysmal lack of documentation Unity seems to have in this regard. Hopefully someone here can help.
I have a canvas set to World Space within my scene. The inspector looks like this:
And I have a button (among many) that looks like this in the inspector:
The canvas also has a Graphic Raycaster attached with default settings.
The button and the canvas are both on the UI layer. Within the scene, they’re not occluded by anything. From what little documentation I can find (and other forum posts), the Event Camera should automatically create a raycast to interact with the UI, but nothing seems to happen when I look at or click on the button in-game.
Am I just missing some component or setting? Or is this not how it actually works?