A powerful and easy-to-use network library for Unity3D that provides robust TCP and UDP communication. Designed for simplicity and flexibility, this library ensures smooth networking for multiplayer games and applications.
- TCP & UDP Communication: Supports both protocols for reliable and fast data transfer.
- Factories for Easy Setup: Quick and straightforward setup process.
- Server & Client Wrappers: Includes auto-reconnect and auto-join functionalities.
- Object-Oriented Approach: No need to deal with raw bytes, send and receive objects directly.
- RSA Encryption: Optional encryption for both TCP and UDP communication.
- Multiple Communication Methods: Use lambdas, delegates, or async operations for sending and receiving objects.
- Quick Info Transmission: Send small pieces of information without creating objects.
- Logging & Debugging Tools: Built-in logging for monitoring network traffic and debugging.
- No Magic Numbers: No need for identifiers or complex configurations.
- Fast, Reliable & Customizable: High-performance and flexible code for various use cases.
- Clean & Understandable Code: Written in easy-to-read C# for better maintainability.
- Open Source & Free to Use: Licensed under MIT, freely available for everyone.
- Clone or download the repository:
git clone https://github.com/attributeyielding/Network-Library-For-Unity-3D.git
- Add the library to your Unity project.
- Start implementing networking using the provided API.
TcpServer server = new TcpServer(12345);
server.Start();
TcpClient client = new TcpClient("127.0.0.1", 12345);
client.Connect();
client.Send(new MyData { message = "Hello, Server!" });
server.OnDataReceived += (sender, data) => {
MyData received = data as MyData;
Console.WriteLine(received.message);
};
We welcome contributions! Feel free to submit issues or pull requests to improve the library.
This project is licensed under the MIT License - see the LICENSE file for details.
For any questions or support, open an issue on the repository.
Happy coding! 🚀