docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NetworkPrefabs

    A class that represents the runtime aspect of network prefabs. This class contains processed prefabs from the NetworkPrefabsList, as well as additional modifications (additions and removals) made at runtime.

    Inheritance
    object
    NetworkPrefabs
    Inherited Members
    object.ToString()
    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 NetworkPrefabs

    Fields

    Name Description
    NetworkPrefabOverrideLinks

    This dictionary provides a quick way to check and see if a NetworkPrefab has a NetworkPrefab override. Generated at runtime and OnValidate

    NetworkPrefabsLists

    Edit-time scripted object containing a list of NetworkPrefabs.

    OverrideToNetworkPrefab

    Properties

    Name Description
    Prefabs

    Methods

    Name Description
    Add(NetworkPrefab)

    Add a new NetworkPrefab instance to the list

    Contains(NetworkPrefab)

    Check if the given NetworkPrefab is present within the list

    Contains(GameObject)

    Check if the given GameObject is present as a prefab within the list

    ~NetworkPrefabs()
    Initialize(bool)

    Processes the NetworkPrefabsList if one is present for use during runtime execution, else processes Prefabs.

    Remove(NetworkPrefab)

    Remove a NetworkPrefab instance from the list

    Remove(GameObject)

    Remove a NetworkPrefab instance with matching Prefab from the list

    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)