docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NetworkTickSystem

    Inheritance
    object
    NetworkTickSystem
    Implements
    INetworkUpdateSystem
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: MLAPI
    Assembly: Unity.Multiplayer.MLAPI.Runtime.dll
    Syntax
    public class NetworkTickSystem : INetworkUpdateSystem, IDisposable

    Constructors

    NetworkTickSystem(float)

    Constructor Defaults to k_DefaultTickIntervalSec if no tick duration is specified

    Declaration
    public NetworkTickSystem(float tickIntervalSec = 0.05)
    Parameters
    Type Name Description
    float tickIntervalSec

    Duration of a network tick

    Fields

    NoTick

    Declaration
    public const ushort NoTick = 65535
    Field Value
    Type Description
    ushort

    TickPeriod

    Declaration
    public const ushort TickPeriod = 65534
    Field Value
    Type Description
    ushort

    Methods

    Dispose()

    Declaration
    public void Dispose()

    GetNetworkTime()

    GetNetworkTime Network time is calculated from m_NetworkTickCount and m_TickIntervalSec (tick frequency)

    Declaration
    public float GetNetworkTime()
    Returns
    Type Description
    float

    Network Time

    GetTick()

    GetTick Gets the current network tick (non-fractional, wrapping around)

    Declaration
    public ushort GetTick()
    Returns
    Type Description
    ushort

    NetworkUpdate(NetworkUpdateStage)

    Declaration
    public void NetworkUpdate(NetworkUpdateStage updateStage)
    Parameters
    Type Name Description
    NetworkUpdateStage updateStage

    Implements

    INetworkUpdateSystem
    IDisposable

    Extension Methods

    NetworkUpdateLoop.RegisterAllNetworkUpdates(INetworkUpdateSystem)
    NetworkUpdateLoop.RegisterNetworkUpdate(INetworkUpdateSystem, NetworkUpdateStage)
    NetworkUpdateLoop.UnregisterAllNetworkUpdates(INetworkUpdateSystem)
    NetworkUpdateLoop.UnregisterNetworkUpdate(INetworkUpdateSystem, NetworkUpdateStage)
    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)