docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct TimeData

    Encapsulates state to measure a World's simulation time.

    Namespace: Unity.Core
    Assembly: Unity.Entities.dll
    Syntax
    public readonly struct TimeData
    Remarks

    This data is most frequently read using Time. It is updated every frame by Unity.Entities.UpdateWorldTimeSystem. To temporarily override the time values, use SetTime(TimeData) or PushTime(TimeData).

    Constructors

    Name Description
    TimeData(double, float)

    Create a new TimeData struct with the given values.

    Fields

    Name Description
    DeltaTime

    The time in seconds since the last time-updating event occurred. (For example, a frame.)

    ElapsedTime

    The total cumulative elapsed time in seconds.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)