StinkySteak / UnityTransport-Netick

A UnityTransport wrapper for Netick.
MIT License
2 stars 0 forks source link

Installation

Prerequisites

Unity Editor version 2022 or later.

Install Netick 2 before installing this package. https://github.com/NetickNetworking/NetickForUnity

Steps

Feature

Supported Protocol

Run multiple protocols in a single machine

Multiple protocols listen port logic

firstProtocol = 7777;
secondProtocol = 7777 + 1;
thirdProtocol = 7777 + 2;

Example:
- UDP Starts on 7777
- WebSocket Starts on 7778
- RelayUDP Starts on 7779

Secure Connection (Optional)

Relay

Host Guide

Client Guide

Weakness

NetworkConnectionRequest Data (byte[]) is fixed size (of 200).
This decision is made to avoid GC at runtime. You may need to use request.DataLength or resize the Array by your own to use it accurately.

public override void OnConnectRequest(NetworkSandbox sandbox, NetworkConnectionRequest request)
{

}