Advertisement
Guest User

Untitled

a guest
Apr 21st, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.37 KB | None | 0 0
  1. GameObject gameObject2 = new GameObject();
  2.         gameObject2.AddComponent<TextMesh>();
  3.         TextMesh component3 = gameObject2.GetComponent<TextMesh>();
  4.         component3.color = Color.red;
  5.         component3.text = "";
  6.         component3.fontSize = 100;
  7.         component3.transform.localScale = new Vector3(0.015f, 0.015f, 0.015f);
  8.         gameObject2.transform.SetParent(this.currentAvatar.transform);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement