When texture is applied for Normal Hover state, we could see Normal text color on the GUI button, but text color doesn’t change for HOver state. Would be very thankful if I could get solution to it.
Puzzling… are you definitely sure you have set the normal/hover colours for the button control (and not, say, the box)? I’ll have to think if there is anything else that could cause this problem.
Is your style really called “mainMenuBtnSkin”, or is that the name of your skin, and you changed the content in the Button style of that skin? Perhaps you want:
(Edit: typically states not showing is because a state’s values are ignored if the corresponding background texture is not set; that was my first thought but you mentioned that both were set)
I used custom style and defined it to button, that has created a problem.
Now I setted Mouse Normal and Hover directly to button style in mainmenuGUIstyle. That is working great. Thanks.
To make the button change with hover or active use GUISkin.
1.Create a GUISkin in your project.
2.Create a var name of skin : GUISkin;
3.In "function OnGUI(){ Place GUI.skin = name of skin;
4.In the inspector assign the skin to the script.
5.Change the skin as you please.
I had the same problem even after ensuring that my skin was properly setup. The issue was with the text changing colour on different states ONLY in styles that were “text-only” and had no graphic associated with it.
Easy Solution: attach a small square clear PNG (I don’t think size matters) as the background texture to each of your states for text-only buttons. Somebody told me once that the default for text-only GUIstyles ignores colour changes in case it is being used as a label or regular text.