Skip to content

Mirror::SpawnMessage

Inherits from NetworkMessage

Public Attributes

Name
uint netId
netId of new or existing object
bool isLocalPlayer
Is the spawning object the local player. Sets ClientScene.localPlayer
bool isOwner
Sets hasAuthority on the spawned object
ulong sceneId
The id of the scene object to spawn
Guid assetId
The id of the prefab to spawn
Vector3 position
Local position
Quaternion rotation
Local rotation
Vector3 scale
Local scale
ArraySegment< byte > payload
The serialized component data ArraySegment to avoid unnecessary allocations

Public Attributes Documentation

variable netId

uint netId;

netId of new or existing object

variable isLocalPlayer

bool isLocalPlayer;

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

variable isOwner

bool isOwner;

Sets hasAuthority on the spawned object

variable sceneId

ulong sceneId;

The id of the scene object to spawn

variable assetId

Guid assetId;

The id of the prefab to spawn

If sceneId != 0 then it is used instead of assetId

variable position

Vector3 position;

Local position

variable rotation

Quaternion rotation;

Local rotation

variable scale

Vector3 scale;

Local scale

variable payload

ArraySegment< byte > payload;

The serialized component data ArraySegment to avoid unnecessary allocations


Updated on 21 January 2021 at 21:34:04 UTC