OnObjectSpawned - Raises when an object gets spawned in the room.


Namespace: LoadBalancer.Client.Game

protected CallResult OnObjectSpawned(ClientCallContext call, SpawnObjectParameters parameters)


SpawnObjectParameters consists of the following parameters:

  • RoomId string - The unique identifier of the room.
  • ObjectId string - The unique identifier of the object to be spawned in the room.
  • Tag string - Object’s label.
  • ObjectProperties KeyValueCollection - A collection of key-value pairs containing the object properties.

Return Value

The CallResult which can be one of the following values:

NotHandled = 0, Completed = 1, Failed = 2, Reenqueued = 3,