How do I create a custom 3d text editor? Unity UI

Can anyone help me create a script that I can edit 3d text via UI?

An example for the idea of help:


Lets already created here is:

using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class Editordetexto3d : MonoBehaviour {

    public InputField inputField;
    public TextMesh myText;

    public void ButtonClick(){
        myText.text="" + inputField.text+ "";
    }
}