Struct Timer
Data used to represent the current state of a timer
Namespace: Unity.Scheduler
Syntax
public struct Timer : IComponentData
Fields
DeltaTime
The amount the timer advanced. This includes the timescale
Declaration
public DiscreteTime DeltaTime
Field Value
Type | Description |
---|---|
DiscreteTime |
PreviousTime
The time from the previous frame
Declaration
public DiscreteTime PreviousTime
Field Value
Type | Description |
---|---|
DiscreteTime |
Time
The current time of the timer
Declaration
public DiscreteTime Time
Field Value
Type | Description |
---|---|
DiscreteTime |
TimerStateFlags
Flags indicating the state of the timer
Declaration
public TimerStateFlags TimerStateFlags
Field Value
Type | Description |
---|---|
TimerStateFlags |
TimeScale
The scale of the timer
Declaration
public double TimeScale
Field Value
Type | Description |
---|---|
Double |