mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
b86a611674
* moving all guides to Articles folder * updating toc for root and articles * fixing toc * css on side toc * fixing links on index
2.1 KiB
2.1 KiB
LiteNetLib4Mirror Transport
LiteNetLib based transport for Mirror.
Usage
- Download the unity package from Releases and import it to your project (it does not contain Mirror)
- Put LiteNetLib4MirrorTransport component on gameobject with NetworkManager and assign it there
- (Optional) Make your NetworkManager derrive from LiteNetLib4MirrorNetworkManager and use optional overloads from it
Features
- UDP
- Built-in Network Discovery and UPnP
- Fully managed code
- Small CPU and RAM usage
- Small packet size overhead ( 1 byte for unreliable, 3 bytes for reliable packets )
- Different send mechanics
- Reliable with order
- Reliable without order
- Ordered but unreliable with duplication prevention
- Simple UDP packets without order and reliability
- Automatic small packets merging
- Automatic fragmentation of reliable packets
- Automatic MTU detection
- NTP time requests
- Packet loss and latency simulation
- IPv6 support (dual mode)
- Connection statisitcs (need DEBUG or STATS_ENABLED flag)
- Multicasting (for discovering hosts in local network)
IL2CPP Warning!
With IL2CPP, IPv6 is only supported on Unity 2018.3.6f1 and later because of this:
Unity ChangeLog
IL2CPP: Added protocol support for IPv6 on Windows. (1099133)
IL2CPP: Correctly indicate that IPv6 is not supported on non-IPv6 platforms. (1108823)
Also, socket Reuse Address option isn't available in IL2CPP.
Credits
RevenantX - for LiteNetLib
vis2k & Paul - for Mirror
Coburn - for Ignorance which i've used as an example
Dankrushen - for helping me find one small mistake which i couldn't find for two days
Lucas Ontivero - for Open.Nat, used for UPnP
shiena - for NetworkDiscoveryHUD