text on a texture?

how can I have changeable text similar to GUI text on a texture?
or look like its on the texture

I want to have a counter on a weapon to show how much ammo is loaded similar to the halo assault rifle I tried to do it with a 3D text but it shows through other objects :?

use 2 images instead and switch them as the number changes.

the alternative is render to texture but requires Unity Pro

Have you tried different shaders with the 3d text?

AC

@ Targos
ok thanks I didn’t notice you could switch the material

@ dreamora
I thought about doing that but it would be a pain making all the different textures

its only 10 different textures or at best 1 texture and UV based switches

0,1, …, 9 :slight_smile:

I was thinking of having 0 through 60 textures and would show the one with the value/name as the current ammo amount I have?

to use 2 different textures of 0 to 9 I would some how have to select the first digit and then the second digit and I don’t know how to split an integer through script like that?

I hope that made sense?