- Home /
Question by
neonfire · Jul 27, 2011 at 11:46 AM ·
animationguicolorprocedural
how to draw simple coloured objects
I'm trying to write a short GUI to allow the user to put together an animation script. The user should be able to drag animation "events" up and down a control.
My original approach was to try and use the Unity GUI system to construct the control out of individual box/button controls. What I want is to be able to draw a simple, partially opaque coloured box but I can't work out how to get the GUI library to do this, the default background colour seems set to black.
Comment
I've tried
GUI.color = Color.red;
GUI.backgroundColor = Color.red;
GUI.Box(BoundingBox, "");
But the result is still just black box.