Class NetworkTickSystem
Inheritance
NetworkTickSystem
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
TickPeriod
Declaration
public const ushort TickPeriod = 65534
Field Value
Methods
Dispose()
Declaration
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
Returns
NetworkUpdate(NetworkUpdateStage)
Declaration
public void NetworkUpdate(NetworkUpdateStage updateStage)
Parameters
Implements
Extension Methods