How to control each letter of text and move different direction?

I want to to display a text like ‘hello world’.

The text letter h e l l o w o r l d ,each as a mesh or sprite flying from out side the screen to my target position.

Meaning use each letter as a particle and each has its own action.

How can I do this with UGUI or something?

First I think I could use a bmfont and get the texture of the letter and assign to an quad.

It works but not very convient for Unity Editor View and modify.

So I think maybe there is a better way to do this,maybe some internal function I don’t know

Well, I don’t see any reason why you couldn’t make each character a UI->Text object. Within reason (quantity-wise), this wouldn’t be an issue? :slight_smile:

You can take a look at TextMesh Pro which is now free on the Asset Store.

Take a look at example 23 which shows how you can modify the vertex attributes.

1 Like

I was going to recommend TextMesh Pro, just in general . lol.

I have no idea what modifying vertex attributes are, but it sounds like he just wants them to start off screen and them move to a position(s). (Maybe to form a sentence…) doesn’t sound too difficult.

Thanks.I will check it.The reason why I don’t use each letter as a text gameobject is I’m not familiar with UGUI text,can’t figure out how it arranged the positon with scale and something weird I don’t know how to modify it.

So I think I’d better write it from the ground.At least I can understand.

Saying ‘UI’ is enough for me to understand (rather than UGUI). Anyhow, position is set in the rect transform position… and scale is in there, too. Right there in the inspector. (also font size in the Text portion).
Anyways, if you’d prefer to try the other way, that’s all good. :slight_smile:

OK,finally find something really helpful.
For someone may need the same.
check unity script document
Font.RequestCharactersInTexture

The example is just what you need,at least I need.

I found this guy’s TextJuicer incredibly helpful. Give it a look:

2 Likes