docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateNetworkObjectPrefab

    CreateNetworkObjectPrefab(string)

    Creates a basic NetworkObject test prefab, assigns it to a new NetworkPrefab entry, and then adds it to the server and client(s) NetworkManagers' NetworkConfig.NetworkPrefab lists.

    Declaration
    protected GameObject CreateNetworkObjectPrefab(string baseName)
    Parameters
    Type Name Description
    string baseName

    the basic name to be used for each instance

    Returns
    Type Description
    GameObject

    NetworkObject of the GameObject assigned to the new NetworkPrefab entry

    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)