- Home /
Working with Time in Unity
My question is rather broad and what i am really looking for is an easy way to work with time in Unity. My solution has to read some .log files. These files contains event that occured at a point in time. I read and interpret these events into a list of "events". an event object is 3 key things. (What(Item)), Where(position) and When(timestamp). One Logfile typically represents 1 day in a real system. Im visualising what happened and therefore i need to be able to play the events.
I need help to figure out how to setup a sort of time system. I have read the timestamps into DateTime objects currently. Now i need to setup some form of ingame timer to which i can compare my events and fire them if the timestamp is approximately equal to the ingame timer.
The events are movement events basically telling where an item has been spotted in a logistic system.
I will appreciate any form of help here. Links to resources, or similar questions, or ideas of how to solve the issue. Im looking for anything that can help me get a grip of these concepts within unity and i programming generally.
For now im just dealing with a simple playing of log file. But in the futere i will need to address realTime visualisation, fast forward, fast backward and all these sort of controls as if it was a movie.
Your answer
Follow this Question
Related Questions
I'm trying to allow my character to only jump when grounded 1 Answer
why the debree timer float not work 1 Answer
Help with distance counter 2 Answers
Tilemap Collider 2D 2 Answers
Can anybody tell me what is wrong in this script ? 0 Answers