← Zurück zu Phaser · Projektplanungspaket

Skill · Version 1.0.0

Unity-Zustandsreplikation

Synchronisiert Unity-Spielzustände und trennt dauerhafte Fakten von einmaligen Ereignissen. Koordiniert Eigentum, Zustandsbilder und Client-Vorhersage für konsistente spätere Beitritte und Korrekturen.

unity-netcode-replication

Agenten mit diesem Skill

Entdecke, wie der Skill hilft

Wann ist der Skill hilfreich?

Nutze ihn bei fehlenden Späteinstiegszuständen oder Konflikten zwischen lokaler Vorhersage und Serverergebnis.

Wobei hilft er dir?

  • Trennt dauerhafte replizierte Fakten von kurzlebigen Netzwerkereignissen.
  • Prüft RPC-Absender und regelt Eigentum sowie Spawn-Lebenszyklus.
  • Begrenzt Snapshot-Interpolation und gleicht Eingaben ohne doppelte Effekte ab.

Das könntest du fragen

Synchronisiere eine Arenatür und einen vorhergesagten Angriff in Unity. Ein später Teilnehmer sieht die geöffnete Tür ohne alten Ton; ein serverseitig korrigierter Angriff darf nicht doppelt schaden. Teste Erzeugungsreihenfolge, wiederholte Eingaben und Eigentumswechsel mit dem installierten Netzwerkpaket.

Ausführliche Dokumentation

Hier findest du die ursprüngliche Anleitung, Beispiele und Prüfschritte des Skills in ihrer Originalsprache.

Details…Weniger anzeigen

Replication and Player Responsiveness

Identify installed netcode APIs, topology, network tick rate and the authority for each field/action. Do not assume full rollback prediction exists in a chosen package.

  • Choose persistent state replication for facts a late joiner must reconstruct; use events for transient actions with explicit replay/deduplication semantics.
  • Validate sender and target before applying an RPC. Keep authoritative resource/damage changes separate from speculative local effects.
  • Make network spawn/despawn, ownership changes and callback registration explicit. Initial state and change notifications may follow different lifecycle paths.
  • For snapshots, define timestamp/tick, interpolation delay and stale/out-of-order handling. Presentation smoothing must not overwrite authoritative physics state.
  • If prediction is required and supported, retain numbered pending inputs, acknowledge processed inputs and reconcile from authoritative state. Handle non-reversible effects without replaying rewards, sounds or damage twice.
  • Bound update frequency and payload size; measure actual traffic and interest/visibility behavior at intended actor counts.

Exercise a late join, changing owner, packet loss/reorder, a fast movement correction and a duplicate request. Distinguish expected visual delay from simulation divergence.

Reference: Gabriel Gambetta's prediction/reconciliation explanation plus the installed Unity package documentation. Conceptual examples are not proof of a particular package feature.

Enthaltene Dateien 2

  • LICENSE.txt
  • SKILL.md