How to make text stay in txt in complete unity

0

The idea is to create an entry where the user enters data and gets registered in txt and can add other data as a simple agenda. The screen asks: enter your name: Enter your age: Enter your city:

Save in txt and then add another set of data. It is a way to record the input and persist the data. I have seen some solutions that are incomplete or confusing.

Thankful,

Eduardo

    
asked by anonymous 27.09.2018 / 13:50

1 answer

0

I already worked with Unity but I did not generate a physical text file on the device. As it is C # you can try to generate the file with StreamWriter. See below:

StreamWriter salvar = new StreamWriter ("CAMINHO_DO_ARQUIVO ONDE SERÁ GERADO");

salvar.WriteLine("PASSE AQUI O SEU TEXTO");
salvar.Close();
    
27.09.2018 / 16:22