- Home /
How do I make a 3D text a button
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 :)
Answer by caleb_b · May 31, 2014 at 05:41 PM
Try using this guy's tutorial http://www.youtube.com/watch?v=Z8YGKQvEz1Y 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...
Answer by eshonbel · May 31, 2014 at 04:59 PM
function OnMouseOver(){
if(Input.GetMouseDown(0){
// Whatever you want it to do.
}
}
Assign that script to the text. However, a better way is this: http://docs.unity3d.com/Manual/gui-Basics.html
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Finding the bounds of a grouped model 2 Answers
Gui question with android device 1 Answer
3D text face camera 2 Answers