Struct TimerData
Timer Data is a copy of the timer data used by entities that react to a timer.
Namespace: Unity.Scheduler
Syntax
public struct TimerData : IComponentData
Fields
Culled
Whether this timer is culled. A culled timer is treated as Inactive.
Declaration
public bool Culled
Field Value
Type | Description |
---|---|
Boolean |
DeltaTime
The delta time if the clock this frame.
Declaration
public DiscreteTime DeltaTime
Field Value
Type | Description |
---|---|
DiscreteTime |
PlayCount
The number of times this timer has been played
Declaration
public ushort PlayCount
Field Value
Type | Description |
---|---|
UInt16 |
PreviousTime
The time on the previous frame.
Declaration
public DiscreteTime PreviousTime
Field Value
Type | Description |
---|---|
DiscreteTime |
Range
The range of the timer. DiscreteTimeInterval.MaxRange if the timer is unbound
Declaration
public DiscreteTimeInterval Range
Field Value
Type | Description |
---|---|
DiscreteTimeInterval |
Time
The time this frame.
Declaration
public DiscreteTime Time
Field Value
Type | Description |
---|---|
DiscreteTime |
TimerId
The Id of the timer this entity is using.
Declaration
public Entity TimerId
Field Value
Type | Description |
---|---|
Entity |
TimeScale
The time scale of the timer.
Declaration
public double TimeScale
Field Value
Type | Description |
---|---|
Double |