-
-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for synchronizing custom resources with MultiplayerSynchronizer #7653
Comments
One issue with sending custom resources (or in fact any It's not apparent from the |
Lol, all I wanted was this
this needs a proper documentation, and needs this :
|
but my proposal may allow using the resource system as Structs (Just like the proposal linked by Calinou) |
We need annotations to mark that "this type is simple a simple value struct". |
For me serialisation/deserialisation option would be a good enough solution for this use case. For now, without that solution we can't use MultiplayerSynchronizer for more complex sync. Maybe we could give an object as option, like a parser into a Dictionnary or PackedBytesArray, or whatever, and that we can set optionally in the UI. Even adding custom send/receive API in code could do the trick, and at least give one simple possibility to exchange more complex data (even if for performance a custom low level solution could be more appropriate). |
Describe the project you are working on
a TPS Multiplayer Hero Shooter
Describe the problem or limitation you are having in your project
custom resources can't be added to MultiplayerSynchronizer to be synced automatically
Describe the feature / enhancement and how it helps to overcome the problem or limitation
MultiplayerSynchronizer allows syncing custom resources or resources in general
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
I think the MultiplayerSynchronizer will just convert the resource into Dictionary and vice versa when receiving values.
If this enhancement will not be used often, can it be worked around with a few lines of script?
I need to handle resources sync manually by RPC Calls.
Is there a reason why this should be core and not an add-on in the asset library?
MultiplayerSynchronizer is a core node.
The text was updated successfully, but these errors were encountered: