Player input text

How to ask player a question, and it is placed into a var.

Ex: what is your name
Asterix
Hello Asterix.

Thanks

You should look up GUI.TextField in the scripting reference. It allows you to capture text from the player.