I’ve run into a bug with GUI.backgroundColor i think.
Previously in unity3.5 i’ve used ‘GUI.backgroundColor’ to set the background color of all gui elements of my skin.
This worked fine.
Now to my surprise i tried this skin with the same code in unity 4.1.2f1 and now not all elements changed color !
I’ve made a unity package file and opened it in a new scene in unity 3.5 and in 4.1.2f1 to make sure i didn’t screwed it up somewhere.
in unity 3.5 —> all colors change fine
in unity 4.1.2f1 —> not all colors change (in my skin it didn’t change color in: “verticalscrollbar”,“verticalscrollbarthumb” and the button hover over image,there is no normal button image)
I attached a screenshot of the gui menu ,you can clearly see the hover over button and the vertical scrollbar has not been affected by the color.
This is quiet important for us because we ship this skin with our product soon and this will delay that.
The entire OnGUI system was re-written in C++ for Unity 4, so it’s not surprising that a bug or two might have been introduced. The best thing would be to make a small repro project and submit it as a bug.
I had the same issue when trying to color button in a custom inspector, I was forced to do one thing, put a GUI.backgroundColor = Color; up every button I have, it works ok for me as I have to color only 3 buttons, but maybe for your case is too much, but give it a try.
Hope you manager to solve it, can’t wait to see your cInput update.