How do I get total time game played output to the log on quit?
Announcement
Collapse
No announcement yet.
Total time game played?
Collapse
X
-
Originally posted by Raildex_ View PostIn your GameInstance/GameMode/GameState class simply create a float variable called "timePlayed"
in the Event Tick of this class, add the delta Seconds to this timePlayed.
When quitting, simply print this timePlayed.
You may format this variable to seconds, minutes, hours and days.
Comment
-
A simple search on google would have given you this:
https://answers.unrealengine.com/que...-playtime.htmlOpen for contracted work | C++/BP (incl. Multiplayer) | Tutoring | VR
My UE4 Blog/Page with Tutorials and more: Hit me for ALL the things!
(Including 100+ Pages Multiplayer Network Compendium to get you started.)
Comment
-
Originally posted by eXi View PostA simple search on google would have given you this:
https://answers.unrealengine.com/que...-playtime.html
Comment
Comment