Click or drag to resize

NetworkedBehaviourSendToClientsT Method (Int32, String, String, T)

[This is preliminary documentation and is subject to change.]

Sends a binary serialized class to multiple clients from the server

Namespace:  MLAPI.MonoBehaviours.Core
Assembly:  MLAPI (in MLAPI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
protected void SendToClients<T>(
	int[] clientIds,
	string messageType,
	string channelName,
	T instance
)
Request Example View Source

Parameters

clientIds
Type: SystemInt32
The clientId's to send to
messageType
Type: SystemString
User defined messageType
channelName
Type: SystemString
User defined channelName
instance
Type: T
The instance to send

Type Parameters

T
The class type to send
See Also