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.

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.

http://answers.unity3d.com/questions/41133/dynamic-text-on-object

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. "