Struct Timer | DOTS Timeline | 0.4.0-preview.5
docs.unity3d.com
    Show / Hide Table of Contents

    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
    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