Click on world space UI

ksxkshan

New member
Greetings,

This is a terribly simple question and I'm sure the answer will kill me, but how can I allow my FPS character to click on buttons on an world space UI?

As it is right now, I find that I can only click on UI's when I press escape to free up the cursor. I would like to be able to equip an "item" which is basically nothing and be able to click on UIs based on where the center of my camera is looking.

I have tried to use the Physics Raycaster on the camera, but that has no effect. I can only get the graphic raycaster on the canvas to work after pressing escape to bring up the cursor.
 
From the character perspective you should first disable input using the OnEnableGameplayInput event:


From there you have complete control over the cursor so you can make it visible and allow for a menu selection.
 
Top