docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method RegisterHostGlobalObjectIdHashValues

    RegisterHostGlobalObjectIdHashValues(GameObject, List<GameObject>)

    HOST ONLY! Since a host is unique and is considered both a client and a server, for each source NetworkPrefab you must manually register all potential GameObject target overrides that have the NetworkObject component.

    Declaration
    public void RegisterHostGlobalObjectIdHashValues(GameObject sourceNetworkPrefab, List<GameObject> networkPrefabOverrides)
    Parameters
    Type Name Description
    GameObject sourceNetworkPrefab

    source NetworkPrefab to be overridden

    List<GameObject> networkPrefabOverrides

    one or more NetworkPrefabs could be used to override the source NetworkPrefab

    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)