How do I modify the disabled GUI style?

Right now when I use GUI.enabled = false, the GUI is faded out. If I wish to modify the style such that the control still looks the same (but still disabled), how should I do it? I have taken a look at the GUISkin, but there's nothing inside the inspector for the disabled look.

Easier method - call GUI.color = new Color(1,1,1,2); right before your disabled items, and GUI.color = Color.white; after


GUI.Button(new Rect(50, 50, 100, 30), "Moo");

GUI.enabled = false;

GUI.color = new Color(1,1,1,2); //if this isn't called here, the button below looks faded
GUI.Button(new Rect(50, 100, 100, 30), "Moo");
GUI.color = Color.white; //puts the color back to normal

GUI.enabled = true;

I don't think there is something like a disabled style. What you could do to achieve this is copy your GUI script to another file. Remove all actions(e.g. everything in the if-statement for a button, don't update slider values etc.). When you disable the "real" gui enable this one. You could also use another style for the "disabled" one.