I have a test scene with two GuiText objects. Each one has a script assigned to it called button (similar to the one found in the script tutorial):
function OnMouseEnter() {
guiText.material.color = Color.red;
}
function OnMouseExit() {
guiText.material.color = Color.white;
}
In the game view in Unity it behaves as expected (mouse over a guitext object and it turns red, leave it and it turns back to white). But, when I build the test game it’s a different story… one object doesn’t turn red when you mouse over it and the other objects turns both of the objects red.
Which is the expected behavior? The one in the game view or the build? If the build, how does one easily swap colors of a specific gui text object? If the game view, I suppose I should log a bug report?
Is this on a Mac with Radeon X1600 card (MacBook Pro / iMac)? If so, then we noticed that as well in rare situations; and that looks like a driver bug.
The technical reason is that OpenGL texture environment’s color is not updated correctly in some situations. Reported to Apple like 3 months ago…