Class NetworkPrefabsList
A ScriptableObject for holding a network prefabs list, which can be shared between multiple NetworkManagers.
When NetworkManagers hold references to this list, modifications to the list at runtime will be picked up by all NetworkManagers that reference it.
Inherited Members
Namespace: Unity.Netcode
Assembly: solution.dll
Syntax
[CreateAssetMenu(fileName = "NetworkPrefabsList", menuName = "Netcode/Network Prefabs List")]
public class NetworkPrefabsList : ScriptableObject
Properties
Name | Description |
---|---|
Prefab |
Read-only view into the prefabs list, enabling iterating and examining the list.
Actually modifying the list should be done using Add(Network |
Methods
Name | Description |
---|---|
Add(Network |
Adds a prefab to the prefab list. Performing this here will apply the operation to all
Network |
Contains(Network |
Check if the given NetworkPrefab is present within the list |
Contains(Game |
Check if the given GameObject is present as a prefab within the list |
Remove(Network |
Removes a prefab from the prefab list. Performing this here will apply the operation to all
Network |