SendMessageToAllSimulators
Methods
public bool SendMessageToAllSimulators<TTarget>(string methodName, MessageTarget target, bool sendToSelf, params object[] args) where TTarget : Component
Sends a client message to every simulator connection.
Parameters
Type | Name | Description |
---|---|---|
string | methodName | |
MessageTarget | target | |
bool | sendToSelf | |
object[] | args |
Returns
Type | Description |
---|---|
bool | false if sending has failed for any of the clients. |
Type Parameters
Name | Description |
---|---|
TTarget | Type of the component that should receive this message. |
public bool SendMessageToAllSimulators(Type targetType, string methodName, MessageTarget target, bool sendToSelf, params object[] args)
Sends a client message to every simulator connection.
Parameters
Type | Name | Description |
---|---|---|
Type | targetType | |
string | methodName | |
MessageTarget | target | |
bool | sendToSelf | |
object[] | args |
Returns
Type | Description |
---|---|
bool | false if sending has failed for any of the clients. |