Skip to main content

Struct SpawnMessage

Syntax
public struct SpawnMessage

Fields

NetId

netId of new or existing object

Declaration
public uint NetId

IsLocalPlayer

Is the spawning object the local player. Sets ClientScene.localPlayer

Declaration
public bool IsLocalPlayer

IsOwner

Sets hasAuthority on the spawned object

Declaration
public bool IsOwner

SceneId

The id of the scene object to spawn

Declaration
public ulong? SceneId

PrefabHash

The id of the prefab to spawn If sceneId != 0 then it is used instead of prefabHash

Declaration
public int? PrefabHash

SpawnValues

Spawn values to set after spawning object, values based on

Declaration
public SpawnValues SpawnValues

Payload

The serialized component data ArraySegment to avoid unnecessary allocations

Declaration
public ArraySegment<byte> Payload

Methods

ToString()

Declaration
public override string ToString()
Returns
TypeDescription
System.String