This component stores the amount of time the given prefab has existed.

Component Age Fields

numbersaved_ageStores the age of the prefab. (In seconds)
numberspawntimeStores the time at which the prefab was spawned during the current instance. (In seconds)

Component Age Methods

GetAge-numberReturns the total age of the prefab. (In seconds)
OnSave-table {age}Returns a table with the prefabs age stored.
GetDebugString-stringReturns a string displaying seconds when the age is less than half a day. Otherwise returns the age in terms of days.
LongUpdatedt-Increments the current age by "dt" seconds.
OnLoaddata-If the data is valid, sets the current age to the given value stored in "data.age".