Is there anyway to colour or shade a rect:
var rect = Rect (0, 0, 10, 10);
Its so I can test where it is on screen…
Thanks
Is there anyway to colour or shade a rect:
var rect = Rect (0, 0, 10, 10);
Its so I can test where it is on screen…
Thanks
A rect is just a set of coordinates. There’s nothing to color. You can however use this rect to define the bounds of a GUI element that you can color, such as a box, label or area.
Have a look through the GUI Scripting guide for some examples.
Draw a GUI.Box with an empty string as contents.
GUI.Box(Rect(x,y,w,h), “”);