Hey there,
I have a small question, I’d like to have a semi-transparent GUI color or texture put into the game viewport when paused, sort of like in MW2, Mirror’s Edge, Minecraft and lots of other games. All I need is to know how to render something like that across the entire screen (independent of screen size), instead of a single massive GUI texture, which could mess up if the resolution is higher than usual. I looked through the documentation under GUI but there isn’t anything that pertains to this in particular. btw, Also I was wondering how to center a different GUItexture in the middle of the screen according to percentage instead of pixel offset. Thanks
Here’s my bit of code for GUI:
function OnGUI() {
GUI.color = Color.black; //version number print, ignore this
GUI.Label (Rect (10,10,200,20), message);
GUI.color = Color(1,1,1, 0.5);
GUI.Label (Rect (9,9,200,20), message);
if (Time.timeScale == 0){ //pauses the game
//here's where I need something
}
}