|
So, my Main Camera has a GUIText that appears as a period in the center of the screen. I want to change the period to an "o" when the camera mouses over a GameObject that has that script. The script is meant for the object in question, by the way! Here's the script. function OnMouseOver() { //Is the cursot over the object? other.guiText.text = "o"; //Change GUIText to "o" } The script doesn't work, aside from not having any errors. The script runs fine, but the GUIText doesn't change! EDIT: I have a new script that does work. It took me a long time, but it also changes the font color as well! Here's the code: So there you have it.
(comments are locked)
|
This is just to close the question.
(comments are locked)
|

post it as answer to close question