Skip to content
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

Is it posible to implement ServerRewind with NetworkTransform? #2890

Open
Fernandolv123 opened this issue Apr 19, 2024 · 0 comments
Open

Is it posible to implement ServerRewind with NetworkTransform? #2890

Fernandolv123 opened this issue Apr 19, 2024 · 0 comments
Labels
stat:awaiting triage Status - Awaiting triage from the Netcode team. type:support Questions or other support

Comments

@Fernandolv123
Copy link

Hello, im currently studying Unity and I started not so long ago using Netcode for GameObjects.

I started following the Unity docs and everything went smoothly until I faced NetworkTransforms, I tried movement with server autority and client autority, witch both worked fine, however I was unable to make a ServerRewind movement method.

I tried having multiple NetworkTransforms with changed autorities (with OnIsServerAuthoritative true and false) and changing them in runtime, needless to say, this didn't work nor changing the OnIsServerAuthoritative method via variable as the method seems to only been called once.

I searched for ways to implement ServerRewind in Netcode for GameObjects but I found zero information about it.

Eventually I managed to do it using 2 NetworkVariables, with write permisions both on server and client and exchanging them values whenever needed (I have an example in my repo if anyone is curious).

I know that ServerRewind is currently on the roadmap, but as it is currently, is there any way for implementing it with NetworkTransforms?

@Fernandolv123 Fernandolv123 added stat:awaiting triage Status - Awaiting triage from the Netcode team. type:support Questions or other support labels Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat:awaiting triage Status - Awaiting triage from the Netcode team. type:support Questions or other support
Projects
None yet
Development

No branches or pull requests

1 participant