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.
Inherited Members
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 |