docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NetworkPrefab

    Class that represents a NetworkPrefab

    Inheritance
    object
    NetworkPrefab
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Netcode
    Assembly: solution.dll
    Syntax
    [Serializable]
    public class NetworkPrefab

    Fields

    Name Description
    Override

    The override settings for this NetworkPrefab

    OverridingTargetPrefab

    The prefab to replace (override) the source prefab with

    Prefab

    Asset reference of the network prefab

    SourceHashToOverride

    Used when hash is selected for the source prefab to override value (i.e. a direct reference is not possible such as in a multi-project pattern)

    SourcePrefabToOverride

    Used when prefab is selected for the source prefab to override value (i.e. direct reference, the prefab is within the same project) We keep a separate value as the user might want to have something different than the default Prefab for the SourcePrefabToOverride

    Properties

    Name Description
    SourcePrefabGlobalObjectIdHash
    TargetPrefabGlobalObjectIdHash

    Methods

    Name Description
    Equals(NetworkPrefab)
    ToString()

    Returns a string that represents the current object.

    Validate(int)
    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)