How to edit 3D Text at runtime?

I need to have the player be able to type in whatever they want into their “journal” using 3D text. Is anybody able to point me in the right direction?

This concept is sort of like minecraft’s books like this:

alt text

One way to do this is to use Text Mesh component. Simply add it to your game object.

Then you can get a reference to the newly added text mesh via script like this (I’m using c# in this case):

	TextMesh myText;
	// Use this for initialization
	void Start () {
		myText = GetComponent<TextMesh>();

You can set text to be displayed via myText.text property.

And lastly, to get the keyboard input, I would suggest using Input.inputString (Unity - Scripting API: Input.inputString)