{"id":21331802,"url":"https://github.com/ycarowr/unitynetworkingapi","last_synced_at":"2025-08-23T14:34:33.673Z","repository":{"id":159107819,"uuid":"249073622","full_name":"ycarowr/UnityNetworkingAPI","owner":"ycarowr","description":"A Unity3D Networking API in C#","archived":false,"fork":false,"pushed_at":"2021-04-17T11:54:40.000Z","size":692,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-04T14:17:27.289Z","etag":null,"topics":["client","client-server","csharp","csharp-network","framework","game-client","game-server","library","network","networking","server","server-plugin","tcp","udp","unity","unity-client","unity-networking","unity-server","unity3d","unity3d-plugin"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ycarowr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-03-21T22:42:31.000Z","updated_at":"2024-03-04T03:13:19.000Z","dependencies_parsed_at":"2023-05-06T20:33:01.870Z","dependency_job_id":null,"html_url":"https://github.com/ycarowr/UnityNetworkingAPI","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ycarowr/UnityNetworkingAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ycarowr%2FUnityNetworkingAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ycarowr%2FUnityNetworkingAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ycarowr%2FUnityNetworkingAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ycarowr%2FUnityNetworkingAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ycarowr","download_url":"https://codeload.github.com/ycarowr/UnityNetworkingAPI/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ycarowr%2FUnityNetworkingAPI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271752125,"owners_count":24814750,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["client","client-server","csharp","csharp-network","framework","game-client","game-server","library","network","networking","server","server-plugin","tcp","udp","unity","unity-client","unity-networking","unity-server","unity3d","unity3d-plugin"],"created_at":"2024-11-21T22:44:06.764Z","updated_at":"2025-08-23T14:34:33.641Z","avatar_url":"https://github.com/ycarowr.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Unity Version](https://img.shields.io/badge/Unity-2019.2.19f1%2B-blue.svg)](https://unity3d.com/get-unity/download)\n[![Twitter](https://img.shields.io/twitter/follow/ycarowr.svg?label=Follow@ycarowr\u0026style=social)](https://twitter.com/intent/follow?screen_name=ycarowr)\n\n# Unity Networking API\n\nThe repository contains a solution for networking in Unity, it's made in pure C# without the usage of Unity's built-in HLAPI components. \nPlease consider that this is a project made for learning purposes, so there are limitations, bugs and a lot of room for further improvements and tests, feel free to mail me with suggestions about the architecture or anything else. \n\n### Objetives\n\nThe main goal is to have two unitypackages, client and server, whitch will be starting points for future multiplayer prototypes. And also learn the basics of networking.\n\n### Projects\n\nHere are the code of both projects:\n\n1. The [Client Project](/UnityNetworkingAPI/UnityGameClient).\n2. The [Server Project](/UnityNetworkingAPI/UnityGameServer).\n\nHere is the link to both [Unity Packages](/UnityNetworkingAPI/Versions).\n\n### How to use it? And Demo Apps\n\nInside each package there are demo applications made to help with understanding the tool.\n\nCurrently in the demo you can:\n\n1. Instantiate players;\n2. Move players around and jump;\n3. Send text messages Client \u003c-\u003e Server;\n\nNote: all the messages are processed in the server side.\n\nHere is an image of two demo players connected to the server:\n\u003cimg width=\"450\" height=\"200\" src=\"/UnityNetworkingAPI/Images/TwoClients.GIF\"\u003e\n\nHere are the content of the demo scenes:\n\n\u003cimg width=\"350\" height=\"180\" src=\"/UnityNetworkingAPI/Images/DemoServerApp.GIF\"\u003e\u003cimg width=\"350\" height=\"180\" src=\"/UnityNetworkingAPI/Images/DemoClientApp.GIF\"\u003e\n\n### Creating the Server Application\n\nThe easiest way to create a server app is described below:\n\n1. Download the Server UnityPackage and import it into your game server. Link [here](/UnityNetworkingAPI/UnityGameServer).\n2. Create a new script and open it. \n3. Add the following import on top: `using UnityGameServer;` \n4. Change the parent class of the script to: `BaseServerApplication` \n5. Drop the script into a gameObject inside the scene.\n6. Drag and drop the scriptable object that contains the server configurations. The asset is located at: `UnityNetworkingAPI/UnityGameServer/Assets/UnityGameServer/ServerConfigs.asset`\n\nIt should look like this picture from the [DemoServerApp.cs](/UnityNetworkingAPI/UnityGameServer/Assets/UnityGameServer/Scripts/Demo/ServerApplication/DemoServerApplication.cs) : \n\n\u003cimg width=\"450\" height=\"200\" src=\"/UnityNetworkingAPI/Images/DemoServerAppGO.GIF\"\u003e\n\n7. Press Play and you should be able to see the following start up logs, which means the server is online in your local machine: \n\n\u003cimg width=\"550\" height=\"500\" src=\"/UnityNetworkingAPI/Images/ServerStartUpLogs.GIF\"\u003e\n\n### Creating the Client Application\n\nThe client application has almost the same set of steps as the server:\n\n1. Download the Client UnityPackage and import it into your game client. Link [here](/UnityNetworkingAPI/UnityGameClient).\n2. Create a new script and open it. \n3. Add the following import on top: `using UnityGameClient;` \n4. Change the parent class of the script to: `BaseNetworkApplication` \n5. Drop the script into a gameObject inside the scene.\n6. Drag and drop the scriptable object that contains the client configurations. The asset is located at: `UnityNetworkingAPI/UnityGameClient/Assets/UnityGameClient/ClientConfigs.asset`\n\nIt should look like this picture from the [DemoClientApp.cs](/UnityNetworkingAPI/UnityGameClient/Assets/UnityGameClient/Scripts/Demo/Client/DemoClientApp.cs) : \n\n\u003cimg width=\"400\" height=\"200\" src=\"/UnityNetworkingAPI/Images/DemoClientAppGO.GIF\"\u003e\n\n7. Press Play and, if the server is online in your local machine, you should be able to see the following start up logs: \n\n\u003cimg width=\"550\" height=\"250\" src=\"/UnityNetworkingAPI/Images/ClientStartUpLogs.GIF\"\u003e\n\n\nAfter both applications are connected a player will be instantiated and you will be able to move and using the keyboard WASD and Space.\n\nFeel free to use the tool as you need :)\n\n### References\n\nI used [Tom Weiland](https://github.com/tom-weiland/tcp-udp-networking/) tutorial series as a base to start my work. Check out his videos to have complementary explanations about networking.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fycarowr%2Funitynetworkingapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fycarowr%2Funitynetworkingapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fycarowr%2Funitynetworkingapi/lists"}