Gametime

v4.0

You will generally utilize Gametime through the Timeboard prefab, which you should add to your scene. This is required for automatic operation of Conditions and Quests.

The Timeboard component has a Gametime class, where you can set up the options you'll be using for your project.

The DatePart Enum is used in many methods, and contains Second, Minute, Hour, Day, Week, Month, Season, and Year.

The value of gameTime is will be 0 at the start of the first day of the startingYear.

As you update the other starting values in the Inspector, you'll notice the value of gameTime will change.

Last updated

Was this helpful?