Method SpawnWithOwnership
SpawnWithOwnership(ulong, bool)
Spawns a NetworkObject across the network with a given owner. Can only be called from server
Declaration
public void SpawnWithOwnership(ulong clientId, bool destroyWithScene = false)
Parameters
Type | Name | Description |
---|---|---|
ulong | clientId | The clientId to own the object |
bool | destroyWithScene | Should the object be destroyed when the scene is changed |