Comments (4)
Your use of MLAPI should stay exactly the same. There just has to be some "adapter" code to go from the underlying transport (UNET by default) to the MLAPI interface. Since you've dug into MSF, you are somewhat familiar with transport level code probably. That's what you'd be dealing with to plug in a new transport.
from com.unity.netcode.gameobjects.
When I say "you can easily change the transport to use". I really do mean it. You just write a class that implements the IUDPTransport interface.
And to use LiteNetLib. Do this:
- Download the LiteNetLib dll
- Download the LiteNetLib transport from here
- Select "Custom" in the NetworkingManager
- Before starting the Manager, just set the transport by doing:
NetworkingManager.singleton.NetworkConfig.NetworkTransport = LiteNetLibTransport;
from com.unity.netcode.gameobjects.
Yes we are affected by any bugs, issues or performance gains or losses the UNET transport has. We use the UNET transport by default. But you can easily change the transport to use.
from com.unity.netcode.gameobjects.
Well, you say "you can easily change the transport to use", but you have to remember that what is easy for you isn't exactly that easy for the rest of us. You practically build an entire networking replacement in just a few short weeks. I have spent the last 4-5 weeks simply trying to get several different ones to work properly to just send a MessagePack serialized message while having 2 binded rudp listener ports. That is why we are turning to you in the first place. If it was that easy I would be able to just use LiteNet as it is, or make my own. That is not the case though, I am here because I rely on tutorials, examples, and help from the experts.
That being said, I saw a drop down for Transport and it has "Custom" in there, but also saw in the commit notes "Removed LiteNetLib as a builtin transport". What all would need to be done or changed to use it and what ends up being different in the usage and implementation of MLAPI within my game if it is changed to use LiteNet?
from com.unity.netcode.gameobjects.
Related Issues (20)
- OnNetworkSpawn race condition in NetworkTransform for CanCommitToTransform HOT 6
- KeyNotFoundException Unity.Netcode.ConnectionRequestMessage HOT 1
- NullReferenceException during client Shutdown
- How to implement replicas in MMO? That is, some players enter another scene without affecting other players
- Network config never the same with parallel sync HOT 2
- AutoObjectParentSync for in-scene GameObjects sets wrong parents after stopping and restarting host HOT 3
- AnticipatedNetworkTransform 🫣 and RigidBody HOT 3
- FastBufferReader does not respect ArraySegment.Offset HOT 1
- NetworkTransform can't be disabled via MonoBehaviour's enabled property, results in NT TICK DUPLICATE HOT 2
- Network Transform synchronized wrong position when WorldPositionStays is false HOT 13
- Is it posible to implement ServerRewind with NetworkTransform?
- 2.0.0-exp2 Distributed Authority has some undue GC every frame
- Scene network objects are broken on first "enter playmode" using disabled scene reload in editor HOT 2
- Corrupted network batch on client during stress testing (Received a packet with an invalid Hash Value.) HOT 13
- Issue when using Unity 2021.3.37f1 and the latest version of Netcode - receiving invalid has codes sends my players flying HOT 1
- Unnecessary GC in Multiplayer Tools & Unity Transport
- Distributed Authority NetworkTransform errors after claiming transferrable ownership HOT 4
- Multiplayer Play Mode 1.0 fails to reload domain under specific circumstances HOT 1
- Packet received with invalid Hash value HOT 3
- Overridden Rpc function with SendTo.Everyone gets called twice when calling the base function HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from com.unity.netcode.gameobjects.