Change GUI.DragWindow() color

I have a custom editor with lots of GUI.DragWindows. I’m trying to change the color of these windows, but changing GUI.color ALA:

GUI.color = Color.Green;

doesn’t work.

I’ve also tried GUI.backgroundColor and GUI.contentColor and neither of those work. How do I do this?

Any help is appreciated.


I’m not sure what you actually want to change… GUI.DragWindow is a pure functional method. It doesn’t render anything. It has to be called inside a window callback in order to drag that window around. If you want to change the window color, you have to change the color before your GUI.Window / GUILayout.Window call.