docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SpawnWithOwnership

    SpawnWithOwnership(ulong, bool)

    Spawns a NetworkObject across the network with a given owner. Can only be called from server

    Declaration
    public void SpawnWithOwnership(ulong clientId, bool destroyWithScene = false)
    Parameters
    Type Name Description
    ulong clientId

    The clientId to own the object

    bool destroyWithScene

    Should the object be destroyed when the scene is changed

    In This Article
    Back to top
    Copyright © 2024 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)