3D Text Counter

How can i make 3d text counter?

By making a TextMesh and updating the TextMesh.text member.

Thanks!

code:
GetComponent(TextMesh).text = “”+PlayerPrefs.GetInt(“Points”);

As the counter will probably update frequently, consider setting a reference to the TextMesh in Awake instead of using GetComponent in updates.