I want to make an object that i can right click, i want to click it and have a drop down appear (like in runescape kind of) but i dont know how to go about this, i searched the forums and they said use raycasting (which i've never done). I need a script to help me or someone to explain how to do this if you need more info just ask
asked Feb 28 '10 at 05:27 AM
Use OnMouseOver with an object that has a collider (this uses raycasting, but you don't have to program it explicitly):
There's OnMouseDown too, where you don't have to check the input, but that's only for left-clicking.
answered Feb 28 '10 at 06:27 AM
erric's answer is correct. just as an additional note i should say. inside the if statement you should set a variable to true and then in GUI do something like this.
in mouse leave or other events you should set this variable to false for the GUI to hide it.
answered Feb 28 '10 at 02:47 PM