Click or drag to resize

StrixBehaviourRpcToOtherMembers Method (String, RpcSuccessEventHandler, FailureEventHandler, Object)

Calls an RPC on all the clients in the match room except for this one.

Namespace:  SoftGear.Strix.Unity.Runtime
Assembly:  StrixUnityRuntime (in StrixUnityRuntime.dll) Version: 1.5.0
Syntax
C#
public void RpcToOtherMembers(
	string rpcName,
	RpcSuccessEventHandler successHandler,
	FailureEventHandler failureHandler,
	params Object[] args
)

Parameters

rpcName
Type: SystemString
RPC method name.
successHandler
Type: SoftGear.Strix.Unity.Runtime.EventRpcSuccessEventHandler
This handler is called when the RPC has been processed successfully.
failureHandler
Type: SoftGear.Strix.Unity.Runtime.EventFailureEventHandler
This handler is called in case there was an error when processing the RPC.
args
Type: SystemObject
A list of method arguments. This should match the arguments in the method definition, both in number and respective types.
Remarks
The method has to be defined on the same class and marked with StrixRpcAttribute attribute.

Possible error codes:
RequestTimeoutServer did not respond within the specified timeout interval.
NotRoomMemberYou're trying to send an RPC message while not being joined to a room.
ConnectionErrorFailed to send the request because of a connection error.
ReplicaNotSynchronizedThe object is not being synchronized over the network.
MessageLimitReachedThe object is not being synchronized over the network.
See Also