Method SpawnAsPlayerObject
SpawnAsPlayerObject(ulong, bool)
Spawns a NetworkObject across the network and makes it the player object for the given client
Declaration
public void SpawnAsPlayerObject(ulong clientId, bool destroyWithScene = false)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | clientId | The clientId who's player object this is |
| bool | destroyWithScene | Should the object be destroyed when the scene is changed |