Struct TimerData | DOTS Timeline | 0.8.0-preview.1
docs.unity3d.com
    Show / Hide Table of Contents

    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
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023