docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Synchronizing states and inputs

    Use ghosts, commands, and RPCs to synchronize states and inputs between server and clients in your multiplayer game.

    Topic Description
    Synchronization with ghosts Use ghosts to synchronize and replicate states between server and clients in a consistent and customizable way.
    Communication with RPCs Use remote procedure calls (RPCs) to communicate high-level game flow events and send one-off, non-predicted commands from the client to the server.
    Handling inputs with the command stream Clients send a continuous command stream to the server when NetworkStreamConnection is tagged as in-game. This stream includes all inputs and acknowledgements of the last received snapshot.
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)