About Netcode for GameObjects
Netcode is a mid-level networking library built for the Unity game engine to abstract networking. This allows you, the developer to focus on your game rather than low-level protocols and networking frameworks.
Core Concepts | Debugging | Learn More |
---|---|---|
Networking Components Objects Messaging System Serialization Scenes | Logging Troubleshooting Error Messages | References Boss Room Bite Size Samples Dilmer's Tutorials FAQs |
#
Before you beginNetcode supports the following versions:
- Unity 2020.3, 2021.1, and 2021.2
- Mono and IL2CPP Scripting Backends
Netcode supports the following platforms:
- Windows, MacOS, and Linux
- iOS and Android
- XR platforms running on Windows, Android, and iOS operating systems
- Most closed platforms, such as consoles. Contact us for more information about specific closed platforms.
- When working with consoles (such as PlayStation, Xbox, or Nintendo Switch), there may be Netcode-specific policies you should be aware of while testing and before launching your game live. Refer to the console's internal documentation for more information. This content is typically protected by NDA.
Using WebGL
Netcode does not support the WebGL platform because it does not allow access to IP Sockets.
There are third party transports provided by the community that may enable you to use Netcode on WebGL platforms. A list of these transports are found here.
Use with caution:
- You may encounter bugs and issues while using Netcode on WebGL, and we will not prioritize fixing those issues.
- The server or host cannot be a WebGL client, but a Desktop or Mobile build.
- You may experience increased latency and jitter because of the TCP protocol used by WebSockets.
Content Licenses
This is free under the permissive MIT Licenses by Unity and the Netcode collaborators. Netcode is open source with no attached costs or limitations, so you can develop features alongside Unity.
MLAPI Previous Versions and Docs
For those looking for the MLAPI releases and documentation v. 12.x and earlier, see the following: