Skip to content

Ignorance: A reliable UDP based transport for vis2k's Mirror Unity API.

Notifications You must be signed in to change notification settings

FizzCube/Ignorance

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Ignorance

Ignorance: A reliable UDP based transport for vis2k's Mirror Unity API. Ignorance uses ENET as the network backend, with nxrighthere's ENet-CSharp wrapper as a layer.

Dependencies

Ignorance relies on ENet-CSharp to do most of the heavy-lifting. I simply hook into the wrapper and perform magic tricks to make it all work.

Ignorance also has a dependency on Mirror which is a battle-tested, improved MMO-scale version of UNET that is leaps and bounds better than what Unity could ever do. Mirror was built against Unity LTS 2017.4 but as long as you have a recent release of Mirror in your project, the Ignorance transport will happily be available as a TransportLayer option. This dependency is required to make use of the TransportLayer class.

How to use

  1. Download the git and compile the project. If errors occur, open a Issue ticket.
  2. In your Mirror NetworkManager child class, you would do:
public override void InitializeTransport() {
  Transport.layer = new IgnoranceTransport();
}

...to start using Ignorance as the transport mechanism. The default in Mirror is Telepathy which is TCP. The other out-of-the-box option is Unity's LLAPI but that's like dealing with cancer - Avoid.

  1. Continue programming your stuff as normal.

Why Ignorance? Why not name it something something Reliable UDP Transport for Mirror something something?

UDP ignores (hence the name) a lot of stuff that TCP fusses over and since UDP is designed to be a scattershot shotgun approach to networking, there's no promises that UDP packets will get from A to B without going through hell and back. This makes since in some usage cases, but you should really consider TCP if you're using networking in a mission-critical environment. There's a reason why big name MMOs use TCP to keep everything in check.

About

Ignorance: A reliable UDP based transport for vis2k's Mirror Unity API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%