Score GUI like "Flappy Bird"

I am making a game with score. The score does work, but how can I show the score as Image? I have the numbers 0-9 as GUI-Textures. If the score is 90, on the screen should appear the Texture “9” and “0”. How can I do this?

You are better of using GUIText:

http://docs.unity3d.com/ScriptReference/GUIText.html

Can I also apply the Images for the numbers?

What do you mean? You use a font, not textures.

I know, but the score, like in flappy bird, has 2 colors. And I think, you can’t do that with fonts.

Should be easy to put together using rich text formatting:

myGuiText.text = "<color=#00ffffff>" + firstDigit.ToString () + "</color><color=#0000ffff>" + secondDigit.ToString () + "</color>";

And with that , the edge can be white, and the middle black?

No. That would make each digit a different color. Didn’t know what you meant, sorry.

I mean, that the numbers look like this:

1743676--110171--imgres.jpg

Ah, I see. You could store your textures in an array of Texture2D objects, then create a GameObject that contains a GUITexture for each digit of the score. Then each frame modify each digit’s GUITexture like:

score.digits*.GUITexture.texture = digitTextures[currDigit];*
Where score is a GameObject that contains all of the digit GameObjects as children, digits is an array of references to score’s GameObject children (filled in Start), and digitTextures is an array containing the Texture2D object for each digit.
Probably a naive approach, hopefully someone can suggest something better.

You need to create your own font texture for that. Go photoshop.
Then there are editor extensions to help with the uv slicing and layouts (see sig)