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 \n\n");
}
string date = "Login Date: " + System.DateTime.Now + "\n";
string timed = "Session Time: " + System.Timers.Timer;
File.AppendAllText(path, date);
Also in C#:
- c# constructor
- c# list to string
- string format c#
- same click event diffrenet buttonms c#
- c# convert excel column index to letter
- c# Authorization has been denied for this request
- unity 3d mouse look script
- c# dynamic object get value
- unity instantiate vector3
- unity rotate object relative to camera
- how to get specific length of row in matrix c#
- how to crouch in unity
- class selector to property in asp net core dropdown
- : ? conditioanl statement c#
- unity fps counter
- c# contextswitchdeadlock
- prefab gets character transform
- c# throw new exception
- c# retrieve files in folder
- c# expandoobject indexer
- c# making a folder
- conditional compilation c#
- c# udpclient receive buffer size
- unity c# run a command then wait