Afternoon all, I'm looking to implement a window, that remains "selected" once you click on it using the standard GUI (slight colour change etc). I have a basic idea about how to do this already. My main query would be how to change the colour.
Normally to change the look of a GUIElement you will assign a GUIStyle to it. This is usually the last parameter of the function used to create that Element. E.g.:
GUI.Button(rect, "mytext", style);
If you declare a public variable of type GUIStyle within your MonoBehaviour you can easily setup Color and background textures for this style in the inspector. Now all you have to is "remember" the window that should stay selected and assign your own GUIStyle to it manually (in code).