{"id":49907309,"url":"https://github.com/e-choness/unity-multiplayer-starter","last_synced_at":"2026-05-16T11:11:31.875Z","repository":{"id":215359700,"uuid":"738673856","full_name":"e-choness/unity-multiplayer-starter","owner":"e-choness","description":"A project for tackling Unity multiplayer games.","archived":false,"fork":false,"pushed_at":"2024-05-22T03:29:56.000Z","size":4481,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-23T01:31:59.212Z","etag":null,"topics":["multiplayer","racing-game","unity","unity3d"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/e-choness.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-03T19:22:22.000Z","updated_at":"2024-05-28T17:37:46.757Z","dependencies_parsed_at":"2024-05-28T17:37:43.889Z","dependency_job_id":null,"html_url":"https://github.com/e-choness/unity-multiplayer-starter","commit_stats":null,"previous_names":["e-choness/unity-service-locator-inversion-of-control","e-choness/unity-multiplayer-kart"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/e-choness/unity-multiplayer-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-choness%2Funity-multiplayer-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-choness%2Funity-multiplayer-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-choness%2Funity-multiplayer-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-choness%2Funity-multiplayer-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/e-choness","download_url":"https://codeload.github.com/e-choness/unity-multiplayer-starter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e-choness%2Funity-multiplayer-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33100364,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["multiplayer","racing-game","unity","unity3d"],"created_at":"2026-05-16T11:11:27.474Z","updated_at":"2026-05-16T11:11:31.862Z","avatar_url":"https://github.com/e-choness.png","language":"C#","funding_links":["https://www.patreon.com/Zsky"],"categories":[],"sub_categories":[],"readme":"# Unity Multiplayer Starter Game\n\nA code along project to get familiar with Unity multiplayer game setups.\n\n## Unity Version and Packages\n\n- [Unity 6 Beta (6000.0.2f1)](https://unity.com/releases/editor/beta)\n- [VContainer](https://github.com/hadashiA/VContainer) - A lightweight Unity dependency injection solution\n- [SceneReference](https://github.com/starikcetin/Eflatun.SceneReference) - An inspector scene reference tool\n- [Mirror](https://github.com/starikcetin/Eflatun.SceneReference) - A Unity network solution continued by the community.\n- [PlayFab Unity3D SDK](https://aka.ms/playfabunitysdkdownload) - A Microsoft game backend solution.\n- [PlayFab Unity Editor Extension](https://aka.ms/PlayFabUnityEdEx) - A Unity editor extension for setting up PlayFab.\n\n## Art Assets\n\n- [Low Poly Models](https://opengameart.org/content/modular-karts) made by [@Zsky_01](https://www.patreon.com/Zsky)\n- [RPG Monster Duo PBR Polyart](https://assetstore.unity.com/packages/3d/characters/creatures/rpg-monster-duo-pbr-polyart-157762)\n\n## Prerequisites\n\n- It would be nice to look at official tutorial resources\n  1. [Hello World](https://docs-multiplayer.unity3d.com/netcode/current/tutorials/helloworld/)\n  2. [Gold Path Module One](https://docs-multiplayer.unity3d.com/netcode/current/tutorials/goldenpath_series/goldenpath_one/)\n  3. [Golden Path Module Two](https://docs-multiplayer.unity3d.com/netcode/current/tutorials/goldenpath_series/goldenpath_two/)\n\n- Kart models: download from [Low Poly Models](https://opengameart.org/content/modular-karts), use .blend files under `BLEND` folder. Make sure install Blender for Unity to convert them into assets.\n- Input settings can be configured as scriptable objects, a good trick to use and define `InputAction` behaviour before creating them as reusable configurations.\n- Useful command line helpers and use cases link: [Here](https://docs-multiplayer.unity3d.com/netcode/current/tutorials/command-line-helper/).\n- For Unity 2023.1.x or later, [Multiplayer Play Mode](https://docs-multiplayer.unity3d.com/tools/1.1.0/mppm/) is a better option for testing out server, host and client.\n- For Unity 2022.x.x or earilier, using command lines with log output for debug purposes.\n\n  1. Log Server\n\n  ```bash\n  \u003cPath to Project\u003e\\\u003cGame\u003e.exe -logfile log-server.txt -mode server\n  ```\n\n  2. Log Client\n\n  ```bash\n  \u003cPath to Project\u003e\\\u003cGame\u003e.exe -logfile log-client.txt -mode client\n  ```\n\nThe Debugging logs on `NetworkVariableTest` works and outputs server uptime information. A `DebugHelper` outputs debugging logs on the screen as well.\n\n## How To Use\n\n1. Add `HelloWorldScene` to `File-\u003eBuild Settings`.\n2. Go to the built executable location. Run console commands for both server and client from `cmd` or Powershell.\n3. If server is started first, it has nothing in the scene. Once a client starts, a player object will spawn in both games.\n4. Install `Multiplayer Tools` from Unity Package Manager Registry. Not mandatory, but very helpful for debugging and monitoring network traffic.\n   - Profiler can be accessed from `Window`-\u003e`Analysis`-\u003e`Profiler`, and scrolldown to `NGO Messages` and `NGO Objects` sections.\n   - Create an empty object in the scene and attach `RuntimeNetstatsMonitor` component for runtime data monitoring.\n\n## Network Behaviour Notes\n\n- `NetworkObject` carrier should not be in the scene. Network prefabs handles all `NetworkObject` instances.\n- Any `MonoBehaviour` implementing a `NetworkBehaviour` component can override the Netcode method `OnNetworkSpawn()`. The `OnNetworkSpawn()` method fires in response to the `NetworkObject` spawning.\n- Having authority capability mapped with `IsServer` or `IsClient` flag will help sync with the rest of the code about which side has authority.\n\n```csharp\nbool HasAuthority =\u003e isServer; // can be set for your whole class or even project\n// ...\nif (HasAuthority)\n    { \n        // take an authoritative decision\n        // ...\n    }\nif (!HasAuthority)\n    {\n        // ...\n    }\n```\n\n- `NetworkVariable` take Generics and serialize them intelligently. If using a constum data structure as `NetworkVariable` type, it should implement `INetworkSerializable` and its `NetworkSerialize` method.\n\n```csharp\npublic struct CustomData : INetworkSerializable{\n    public int Id;\n    public bool IsOwner;\n    \n    public void NetworkSerialize\u003cT\u003e(BufferSerializer\u003cT\u003e serializer) where T: IReaderWriter{\n        serializer.SerializeValue(ref Id);\n        serializer.SerializeValue(ref IsOwner);\n    }\n}\n```\n\n- `[ServerRpc]` attribute marks events being sent to the server. The method is forced to have `ServerRpc` suffix, otherwise it won't compile.\n- `[ClientRpc]` attribute marks events executed by the server and being sent to the client. he method is forced to have `ClientRpc` suffix, otherwise it won't compile.\n\n## Credits\n\n- [Multiplayer Kart](https://github.com/adammyhre/Unity-Multiplayer-Kart) made by [adammyhre](https://github.com/adammyhre)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe-choness%2Funity-multiplayer-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fe-choness%2Funity-multiplayer-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe-choness%2Funity-multiplayer-starter/lists"}