I'm trying to figure out how I can use text as a particle effect in either the new or old Particle systems in Unity.
I want to use it for indicating damage. ie: An object is hit with 5 units of damage and the particle system spawns a single particle with the text '5' over that game object in the prescribed movement/color/whatever pattern defined for the particle.
Ideally, a texture/material will be used that contains all the characters, rather than an individual texture/material for each character (using variable-width fonts so I can't guarantee each character has an exact amount of 'space' along a row or column in the texture).
I just can't see how I can tell the particle (via script) to clip out specific piece, or pieces (in the case of numbers with >1 digit) from the material and use it.
Any help would be greatly appreciated. (Perhaps there is a way of doing this via built-in Unity text handling?)
↧