docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Samples

    Use the samples in this section to learn how to use Netcode for GameObjects in your projects. The samples are designed to help you understand the concepts and features of Netcode for GameObjects, and they provide practical examples of how to implement multiplayer functionality in Unity games.

    Topic Description
    NetworkBehaviour NetworkBehaviour is an abstract class that derives from MonoBehaviour and is primarily used to create unique netcode or game logic. To replicate any netcode-aware properties or send and receive RPCs, a GameObject must have a NetworkObject component and at least one NetworkBehaviour component.
    Synchronize You can use NetworkBehaviours to synchronize settings before, during, and after spawning NetworkObjects.
    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)