docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method RemoveNetworkPrefab

    RemoveNetworkPrefab(GameObject)

    Remove a prefab from the prefab list. As with AddNetworkPrefab, this is specific to the client it's called on - calling it on the server does not automatically remove anything on any of the client processes.

    Like AddNetworkPrefab, when NetworkConfig.ForceSamePrefabs is enabled, this cannot be called after connecting.

    Declaration
    public void RemoveNetworkPrefab(GameObject prefab)
    Parameters
    Type Name Description
    GameObject prefab
    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)