Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

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 

");
        }

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

        File.AppendAllText(path, date);
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# operators 
Csharp :: universities in greece 
Csharp :: getcomponent rigidbody2d 
Csharp :: get image information using c# 
Csharp :: prime number generator 
Csharp :: c# make a negative number positive 
Csharp :: draw table in console c# 
Csharp :: unity how to check object position 
Csharp :: shallow copy vs deep copy c# 
Csharp :: c# loop array back 
Csharp :: Insertion sort in c# 
Csharp :: c# use enum in class 
Csharp :: make sprite invisible unity 
Csharp :: is c# hard to learn 
Csharp :: .Net 6 Program.cs 
Csharp :: unity sword trail 
Csharp :: c# todatatable nullable 
Csharp :: git set origin 
Html :: ssss 
Html :: add mailto in html 
Html :: http://127.0.0.1:5500/favicon.ico 
Html :: bootstrap 5 overflow 
Html :: give red color text in markdown 
Html :: python get html from url 
Html :: how to link new tab in html button 
Html :: add icon to website tab 
Html :: script src tag in html 
Html :: how to convert a html canvas into a png file 
Html :: open whatsapp html 
Html :: table border color in html 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =