GUI Material Problem

Hi All!

I got a little problem when adding a material to a GuiText. The material has a standard GUI/Text Shader on it, and is set to red. Unfortunately, when added, it makes Blocks out of the font, wich is the standard one btw…

What am I doing wrong? Anybody any idea??

With Material:

Wrong one

Without Material

Good one

And this is the script used to generate the Timer

    private var startTime;
var restSeconds : int;
var roundedRestSeconds : int;
private var displaySeconds : int;
private var displayMinutes : int;
var countDownSeconds : int;

function Awake() {
	startTime = Time.time;
}

function OnGUI () {
	var guiTime = Time.time - startTime;
	restSeconds = countDownSeconds - (guiTime);

	if (restSeconds == 60) {
    print ("One Minute Left");
}

	if (restSeconds == 0) {
    print ("Time is Over");
}


         roundedRestSeconds = Mathf.CeilToInt(restSeconds);

	     displaySeconds = roundedRestSeconds % 60;
	     displayMinutes = roundedRestSeconds / 60; 

	text = String.Format ("{0:00}:{1:00}", displayMinutes, displaySeconds); 
	guiText.text = text;

}

You probably want this answer, although really it’s simpler to just use OnGUI and set GUI.color.