Comments (8)
Hey @tuleky thank you for this!
Please go ahead!
The only advice we'd give you is create smaller PRs for your individual features against the develop branch. (for example one PR for character data)
This'll be great to continue the conversation, see what you have in mind.
from com.unity.multiplayer.samples.coop.
I couldn't find a way to change those enum to scriptable objects, I think the reason is I haven't known multiplayer architecture well, sending huge CharacterClass via networkvariable every tick is so inefficient, we definitely have to use enum in this scenario.
One suggestion would be I think we don't networkvariable for syncing character classes for late joiners, there could be a little system which sends character classes to the new comers via rpc calls rather than networkvariable. That way we could use CharacterClass for sending data over network.
from com.unity.multiplayer.samples.coop.
Hey Tuleky! A quick solution for this, you could generate an ID dynamically (in your SO's OnValidate if it's not generated yet). That would give a way to identify SOs and be able to exchange only that ID on the network. What do you think?
from com.unity.multiplayer.samples.coop.
I would highly suggest keeping NetVars for that kind of data instead of RPCs. (See this article here on why https://docs-multiplayer.unity3d.com/docs/learn/rpcvnetvar)
from com.unity.multiplayer.samples.coop.
Hey Tuleky! A quick solution for this, you could generate an ID dynamically (in your SO's OnValidate if it's not generated yet). That would give a way to identify SOs and be able to exchange only that ID on the network. What do you think?
Hmm, that sounds nice. So we still need some kind of dictionary implementation for finding character class via using ID, what would we gain for doing that?
from com.unity.multiplayer.samples.coop.
The advantage is you wouldn't need an enum with a switch case. It could be populated dynamically. It would allow to add new classes or actions without code changes
from com.unity.multiplayer.samples.coop.
We also need a solution for imps, they need to be set up before launch.
from com.unity.multiplayer.samples.coop.
fixed
from com.unity.multiplayer.samples.coop.
Related Issues (20)
- Why did you create your own MessagePipe when there is already a nice framework for it? HOT 3
- Mobile Joystick HOT 2
- Local multiplayer HOT 1
- CinemachinePipeline class is Deprecated HOT 3
- Reparenting HOT 2
- New mode pvp HOT 1
- Sharing Variable between scenes HOT 1
- Lobby not working on latest LTS HOT 5
- Broken code of conduct link HOT 1
- Skinned Mesh Rendere is invisible in build HOT 1
- Skinned Mesh Rendere is invisible in build HOT 1
- error in docs. HOT 1
- Feedback for docs/advanced-topics/object-pooling.md HOT 12
- 'NetworkManager' does not contain a definition for 'OnClientStarted' HOT 2
- links from the docs page are broken HOT 1
- bug: Host name !supported (only ip) HOT 2
- Building with -batchmode -nographics emits audio HOT 1
- Breaking: Headless servers reject clients HOT 3
- feat: WebGL+WSS support HOT 1
- Errors when importing 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.multiplayer.samples.coop.