Click or drag to resize

NetworkedBehaviourSendToClientT Method (Int32, String, String, T)

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

Sends a binary serialized class to a client with a given clientId from Server

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

Parameters

clientId
Type: SystemInt32
The clientId to send the message 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