Class NetworkSpawnManager
Class that handles object spawning
Inherited Members
Namespace: Unity.Netcode
Assembly: solution.dll
Syntax
public class NetworkSpawnManager
Fields
Name | Description |
---|---|
Ownership |
Use to get all NetworkObjects owned by a client Ownership to Objects Table Format: [ClientId][NetworkObjectId][NetworkObject] Server: Keeps track of all clients' ownership Client: Keeps track of only its ownership |
Spawned |
The currently spawned objects |
Spawned |
A list of the spawned objects |
Properties
Name | Description |
---|---|
Network |
Gets the NetworkManager associated with this SpawnManager. |
Methods
Name | Description |
---|---|
Get |
Returns a list of all NetworkObjects that belong to a client. |
Get |
Returns the local player object or null if one does not exist |
Get |
Returns the player object with a given clientId or null if one does not exist. This is only valid server side. |