Netcode for GameObjects is a high-level netcode SDK that provides networking capabilities to GameObject/MonoBehaviour workflows within Unity and sits on top of underlying transport layer.
Repo Unity-Technologies/com.unity.netcode.gameobjects, read from GitHub 3 h ago. Unity-Technologies has not joined Take My Repo.
netcode.gameobjects groups) to set up NetworkManagers and network prefabs, start and stop sessions, inspect clients and spawned objects, spawn, despawn and change ownership, simulate network conditions and sample network traffic. They are available when the project has com.unity.pipeline 0.9.0-exp.1 or later. (#4210)NetworkConfig.TickRate when a session carrying GhostObject prefabs is started, so GhostObject updates land on the same interval as the rest of Netcode for GameObjects. (#4144)NetworkConfig.AutoConfigureSnapshotSize, enabled by default, which sets the Netcode for Entities snapshot packet size to 4096 bytes when a session carrying GhostObject prefabs is started. Netcode for Entities defaults to a single MTU, which updates GhostObjects well below the tick rate at the instance counts Netcode for GameObjects projects typically run. Disable it to manage the value yourself. (#4144)NetcodeConfig.AutomaticStateReplication at runtime, as Netcode for GameObjects puts each connection in game once the client has synchronized. (#4209)NetworkTime reported a TickOffset of almost a whole tick, instead of zero, for some times that land on a tick (for example 0.3 at a tick rate of 10), which put TickWithPartial one tick ahead or, in long sessions, Tick one tick behind. Times between minus one tick and zero now report tick -1 with a positive TickOffset, as other negative times do. (#4228)BitWriter were lost when a later BitWriter.TryBeginWriteBits call in the same bitwise context grew the FastBufferWriter. The bytes written earlier in that context were replaced with zeros or uninitialized memory. (#4226)FastBufferWriter created with a size of 0 never returned from its first write or TryBeginWrite call that needed the buffer to grow. (#4224)FastBufferReader created with an offset and the default length of -1 read past the end of its source. The ArraySegment<byte> overload that takes an offset now applies it from the start of the segment. (#4222)NetworkList<T> still had unsent changes applied those changes twice, resulting in duplicate entries and index-based events landing on the wrong elements on that client. (#4216)NetworkObject with NetworkShow while its NetworkVariable updates were held back by NetworkVariableUpdateTraits stopped those pending changes from being sent until the variable was modified again. (#4216)NetworkManager.OnNetCodeDisconnect was not invoked when a connection closed during a hybrid mode session, only when the session shut down. (#4209)NetworkObject's parent but left it at the moved position when the change was made with worldPositionStays disabled. The original position, rotation and scale are now restored. (#4202)NetworkTimeSystem.AdjustmentRatio, and clearly visible at higher values. (#4195)Guid and List<T>, in assemblies compiled against .NET reference assemblies, for example when targeting .NET 10. Those split the core library across System.Runtime, System.Collections and other assemblies. (#4188)NetworkPrefabsList while a session was running was registered more than once and logged a duplicate GlobalObjectIdHash error. (#4184)NetworkObject into another scene made the clients that did not observe it log "Trying to synchronize NetworkObjectId but it was not spawned". The scene migration is now only sent to the clients that observe the NetworkObject. (#4176)NetworkObject that was moved into another scene while hidden from a client spawned in that client's active scene when it was shown with NetworkShow, instead of the scene it is in on the server. (#4176)NetworkTransform instances could stop child/nested instances from updating because an authoritative NetworkTransform (root or otherwise) would remove the NetworkObject from the update group, preventing non-authoritative instances from updating their state on the authority side. (#4169)NetcodeConfig validation messages were not interpolated, so they reported placeholders instead of the setting that was wrong. (#4144)NetcodeConfig.EnableClientServerBootstrap was set to DisableAutomaticBootstrap. Netcode for GameObjects creates the world itself and no longer needs that setting changed. (#4144)Unity.Netcode.Editor → Unity.Netcode.GameObjects.Editor
Unity.Netcode.Editor.CodeGen → Unity.Netcode.GameObjects.Editor.CodeGen
Unity.Netcode.Editor.PackageChecker → Unity.Netcode.GameObjects.Editor.PackageChecker
Unity.Netcode.Editor.Tests → Unity.Netcode.GameObjects.Editor.Tests
Unity.Netcode.NetworkTime → Unity.Netcode.GameObjects.Timing.NetworkTime
Unity.Netcode.NetworkTimeSystem → Unity.Netcode.GameObjects.Timing.NetworkTimeSystem
Unity.Netcode.NetworkTickSystem → Unity.Netcode.GameObjects.Timing.NetworkTickSystem