Is it posible to implement ServerRewind with NetworkTransform?

Aperta
#2,890 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
20/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
csharp, unity

Direzione di ricerca

Inizia dalla documentazione di NetworkTransform e dalla voce della roadmap di ServerRewind, quindi confronta il loro comportamento dell’authority con l’esempio con due NetworkVariable nel repository collegato. Determina se sono previsti cambiamenti dell’authority a runtime e il supporto al rewind, quindi documenta l’approccio supportato o l’ambito delle modifiche richieste a NetworkTransform.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

type:support

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?

Lingua principale
C#
Stelle
2.3k
Fork
465
Merge medio
3g 12h
PR unite (30g)
39

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Unity-Technologies/com.unity.netcode.gameobjects

Tutte le issue di Unity-Technologies/com.unity.netcode.gameobjects

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.