x


unity 3d text -

im trying to create 3d text in unity that pops up when something occurs how can i do that ? any help would be greatly appreciated.

more ▼

asked Feb 13, 2011 at 06:43 AM

hhh 4 gravatar image

hhh 4
1 20 8 8

(comments are locked)
10|3000 characters needed characters left

3 answers: sort voted first

Using TTF Text a package for 3D text you can find on the asset store, to make appear some 3d-text with a customized fancy animation you may do something like this:

 public GameObject ControlAppearPrefab;

 void OnYourEvent() { 
   GameObject go=new GameObject(); go.AddComponent<TTFText>(); 
   TTFText t=go.GetComponent<TTFText>();
   t.Text="My text";
   t.TokenMode=TTFText.Character; 
   t.GlyphPrefab=MakeAppearWithAnimPrefab; 
 }



Then your CMakeAppearWithAnimPrefab should have a MeshFilter, a MeshRenderer, and instance of a script that may be like this :

 void Start() {
       transform.localScale=Vector3.zero; // make letters invisible at the beginning
       SendMessage("DisplayLetter"); // ask the script that manage the animation to start
 }

Then add the component "DisplayLetter_CamToPos" that will manage the way the Letters are meant to be displayed. Have a look at the code, well of course there is a few other ways of making this.

more ▼

answered Jun 28, 2012 at 12:27 PM

bnmindstorm gravatar image

bnmindstorm
45 3 2 3

This is very helpful, thank you.

Jul 28, 2013 at 01:20 AM Dubious Drewski
(comments are locked)
10|3000 characters needed characters left
more ▼

answered Feb 13, 2011 at 08:02 AM

DaveA gravatar image

DaveA
33.6k 419 346 487

(comments are locked)
10|3000 characters needed characters left

Hello. Thanks in advance.

Could you please explain this in more details ???..........

  " Then your CMakeAppearWithAnimPrefab should have a MeshFilter, a MeshRenderer, and instance of a script that may be like this :

 void Start() {
 transform.localScale=Vector3.zero; // make letters invisible at the beginning
 SendMessage("DisplayLetter"); // ask the script that manage the animation to start
 }

Then add the component "DisplayLetter_CamToPos" that will manage the way the Letters are meant to be displayed. Have a look at the code, well of course there is a few other ways of making this. "

more ▼

answered Mar 20, 2013 at 01:03 PM

miguelangeltfp gravatar image

miguelangeltfp
1

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x158

asked: Feb 13, 2011 at 06:43 AM

Seen: 11900 times

Last Updated: Jul 28, 2013 at 01:20 AM