Quantcast
Channel: Questions in topic: "gui"
Viewing all articles
Browse latest Browse all 125

Create an interactable World Space Canvas

$
0
0
Hello fellow Developers, I am currently working on a game that features terminals the player can interact with. I use World Space Canvases to represent the screen of the terminals and I actually don't know how to make those canvases interactable so the player can interact with the GUI elements that are placed on the GUI. There is a cursor on the canvas that the player can move around but it can't interact with any GUI elements (meaning pressing buttons, etc). I've spent the last couple of days looking this up but I can't get quite my head around this one. As far as I understand is that I need to shot a Raycast from the cursor's position onto the canvas so the GUI element get's hit by that Raycast and the script attached to element is executed (for example a button click). Am I on the right track or did I mix something up? I'd really appreciate if you could help me understand. I'd also appreciate any ressources (YouTube tutorials, other forum posts, etc) that point me to the right direction. Thank you very much!

Viewing all articles
Browse latest Browse all 125

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>