docs.unity3d.com
    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
    Syntax
    [Serializable]
    public class NetworkPrefab

    Fields

    Override

    The override settings for this NetworkPrefab

    Declaration
    public NetworkPrefabOverride Override
    Field Value
    Type Description
    NetworkPrefabOverride

    OverridingTargetPrefab

    The prefab to replace (override) the source prefab with

    Declaration
    public GameObject OverridingTargetPrefab
    Field Value
    Type Description
    GameObject

    Prefab

    Asset reference of the network prefab

    Declaration
    public GameObject Prefab
    Field Value
    Type Description
    GameObject

    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)

    Declaration
    public uint SourceHashToOverride
    Field Value
    Type Description
    UInt32

    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

    Declaration
    public GameObject SourcePrefabToOverride
    Field Value
    Type Description
    GameObject

    Properties

    SourcePrefabGlobalObjectIdHash

    Declaration
    public uint SourcePrefabGlobalObjectIdHash { get; }
    Property Value
    Type Description
    UInt32

    TargetPrefabGlobalObjectIdHash

    Declaration
    public uint TargetPrefabGlobalObjectIdHash { get; }
    Property Value
    Type Description
    UInt32

    Methods

    Equals(NetworkPrefab)

    Declaration
    public bool Equals(NetworkPrefab other)
    Parameters
    Type Name Description
    NetworkPrefab other
    Returns
    Type Description
    Boolean

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()

    Validate(Int32)

    Declaration
    public bool Validate(int index = -1)
    Parameters
    Type Name Description
    Int32 index
    Returns
    Type Description
    Boolean
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 26 October 2023