Hi all,
I was wondering whether i could use a game Object (such as a cube) as a Clickable object which could cause a reaction, such as a menu popup.
Also, would it be possible to have a game reaction (menu popup) when the First Person Controller comes within a certain range of an Object?
Cheers,
Dom.
giyomu
August 19, 2010, 2:01am
2
yes and yes , you just have to code it in a way it react as you want , but you can pretty much do all that stuff
Welcome to the forum, CARP3Tguy!
You can make an object react to the mouse by adding an OnMouseEnter function to its script. You can activate code when an object enters a certain area using a trigger collider (see this manual page for details).
Cheers for the warm welcome guys,
I’ll post how I go as I move along with it
Just for a little background info, it’s actually for a project I’m doing in a class at school.