[Help] In-game name

How can I get the player to write its own name in-game and store that name in a variable?
(I’m making a text-based game)

Please use Google and YouTube for generic editor questions. I found this with a quick search. Are you looking to emulate console input, or make an actual console?

https://www.youtube.com/results?search_query=unity+player+input+name+tutorial

You need to use the UI to get input.
If your game is text based I highly suggest NOT using unity, a text based game can easily be mocked up in a few hours in Visual Studios, but if you aren’t a programmer, which I’m assuming your not, then a text based game is literally harder than a 3D game, there are no assets, simply code.

While I agree, that a text-based console (console window not the system) is better done on something that already lives on the console like VS. I disagree that it’s harder than a “3D game”. It’s trivial really to create a UI out window and a UI in window with text formatting. Everything else would work exactly the same way from there-on out.