I am trying to save my lap times to the iOS leaderboards and Android leaderboards from unity. For some reason I can't get it in the right format for the lap times to show correctly on the leaderboards.
Does anyone know how they need to be formatted before submitting to the leaderboards for both platforms?
I need them to display in this format: 00:00:00:000
Thanks, Liam
EDIT:
Once a new lap time is recorded, I take the total seconds elapsed and push them to the leaderboards. But it does not save as the actual time, it displays as 4 days, 21 hours etc.
I think the best your gonna get is milliseconds. Not sure if your displaying nanoseconds. But here's a snippet.
I won't take credit, it was pulled from Unity Answers. Just Google. Then just store off the float in your
PlayerPrefs
. I think this is what you're asking for.