Hi there,
I am working on a game in unity and I have a title screen that has some 3D text. I would like to know how I can turn it into a button. I have tried multiple scripts but none of them seem to work.
Thanks for reading
Hi there,
I am working on a game in unity and I have a title screen that has some 3D text. I would like to know how I can turn it into a button. I have tried multiple scripts but none of them seem to work.
Thanks for reading
function OnMouseOver(){
if(Input.GetMouseDown(0){
// Whatever you want it to do.
}
}
Assign that script to the text.
However, a better way is this:
Try using this guy’s tutorial Unity 3D Tutorials - Create a Cool 3D Main Menu - YouTube He makes a main menu by putting up a bunch of 3d texts and putting his Javascript on them. I’ve used it, and it works well, but I started using GUI Buttons instead. Follow @eshonbel link. That’s what I use. I just like them better…