- Home /
Detecting GuiText click
I have multiple GUIText objects in my title scene. When each of these is clicked, I want to allow the player to start the game, change options, and view the high scores, respectively. Since I have many GUITexts objects, I'd like to put the code to execute the scene transition in the Update() function of my scene controller rather than editing the OnMouseDown() function for each of the GUITexts. I've looked around for how to do this, but all the code I've come across involves Raycasting, which is for GameObjects not GUIText. Could someone please explain how to change scenes using the Update() function in my scene controller when a GUIText is clicked? Thank you!
Your answer
Follow this Question
Related Questions
Unity iPhone scene transition on Tap of GUIText 1 Answer
Cannot cast from source type to destination type. Can't figure it out!! 1 Answer
GUIText buttons in my pause menu don't fulfill their function until I unpause? 1 Answer
GuiText not Displaying Asian Characters unless a latin character is present also 0 Answers
Ammo Count on Gun 1 Answer