Answers for "how to create persistentdatapath unity"

C#
0

unity how to get data of play session time in a text file?

string path = Application.dataPath + "/Data/DataLog.txt";

        if (!File.Exists(path))
        {
            File.WriteAllText(path, "Level Test1 nn");
        }

        string date = "Login Date: " + System.DateTime.Now + "n";
        string timed = "Session Time: " + System.Timers.Timer;

        File.AppendAllText(path, date);
Posted by: Guest on June-03-2020

Code answers related to "how to create persistentdatapath unity"

C# Answers by Framework

Browse Popular Code Answers by Language