docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum NetworkTimeFlags

    Flags used by NetworkTime singleton to add some properties to the current simulated tick. See the individual flags documentation for further information.

    Namespace: Unity.NetCode
    Assembly: Unity.NetCode.dll
    Syntax
    [Flags]
    public enum NetworkTimeFlags : byte

    Fields

    Name Description
    IsCatchUpTick

    Only valid on server. True when the current simulated tick is running with a variabled delta time to recover from a previous long running frame.

    IsFinalFullPredictionTick

    Only valid inside the prediction loop, the current server tick is the last full tick we are predicting. If IsFinalPredictionTick is set the IsPartial flag must be false. The IsFinalPredictionTick can be also set if the current server tick we are predicting is a full tick.

    IsFinalPredictionTick

    Only valid inside the prediction loop, the current server tick which will be the last tick to predict.

    IsFirstPredictionTick

    Only valid inside the prediction loop, the server tick the prediction is starting from.

    IsFirstTimeFullyPredictingTick

    Only valid inside the prediction loop, the current server tick is a full tick and this is the first time it is being predicting as a non-partial tick. The IsPartial flag must be false. This is frequently used to make sure effects which cannot easily be rolled back, such as spawning objects / particles / vfx or playing sounds, only happens once and are not repeated.

    IsInPredictionLoop

    Indicate that the current ServerTick is a predicted one and the simulation is running inside the prediction group.

    In This Article
    Back to top
    Copyright © 2025 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)