Get multiplayer networking running in your Unity project in minutes.
GONet v1.3 and earlier: Unity 2021.3.26+. GONet v1.2 and earlier: Unity 2018.3+.
Navigate to Edit → Project Settings → Player → Allow 'unsafe' Code and enable the checkbox.
In the same Player settings, set the Api Compatibility Level to .NET 4.x.
For detailed logging during development, add the following Scripting Define Symbols:
LOG_DEBUG;LOG_INFO;LOG_WARNING;LOG_ERROR;LOG_FATALDownload the GONet package from the Unity Asset Store and add it to your project.
Import the GONet package into your Unity project and allow automatic compilation to complete. Unity will process the scripts and generate the necessary files.
Add the GONet_GlobalContext prefab to your startup scene. You can find it at:
Assets/GONet/Resources/GONet/GONet_GlobalContext.prefabAlternatively, use the included sample scene to get started quickly:
Assets/GONet/Sample/GONetSampleScene.unityPress Play in the Unity Editor, then use the keyboard shortcuts to spawn instances:
Alt + S
Spawn server instance
Alt + C
Spawn client instance
Launch two instances of your built application. In the first instance, press Alt + S to start the server. In the second instance, press Alt + C to connect as a client.
GONet is installed and running. Now learn how to build with it.
GONet v1.5 (Free) disclosure
GONet v1.5 (free) includes a legacy license/EULA remittance mechanism that may transmit a local GONet-generated file to unitygo.net. This behavior is not present in GONet Legendary (v1.6+), the paid version available on the Unity Asset Store.