- Home /
GUI Textures and Raycasts
I'm trying to use a GUI texture as a button for toggling on movement or attack mode. The problem i'm running into is, clicking on an element other than the unit I have selected causes it to be deselected. I tried to set it up so that if I click on something in the GUI layer it would ignore this behavior, but alas it appears that GUI Textures ignore mouse raycasts. Is there anyway to make a mouseclick on a GUI Texture reacts as if the GUI Texture were a 3D object that's affected by raycasts?
Your answer
Follow this Question
Related Questions
How interact on a GUI Texture in a scen with 2 cameras. 1 Answer
Way to have a pause and play texture in same GUI texture? 0 Answers
Resizable GUI textures 1 Answer
How do I get a GUI Texture Button to act as a Input Key such as a T button on a key bored or so? 1 Answer
Change Gui Textre to another overtime? and reset script when player passes through trigger 1 Answer