Message node


Message nodes allow inter-scene communication using strings.

Message nodes using the same url can communicate with each other.
Message are broadcasted: multiple Message nodes matching the same url will all receive the messages).
String arrays messages can be sent using set_data field or by using the Browser.sendMessage (url, string1, ..., stringN) method (see the [Browser] API for more details).

Receiving data can done by routing data_changed field to a script.


MFString url [] :
The first item of the url defines the string that Message nodes must have in common in order to communicate with each other.

MFString set_data [] :
When this field is modified, the Message node will broadcast a message containing all the items of the set_data field.
Note: Only one message can be sent at a time. Modifying multiple times in the same Javascript function, the set_data field will only send one message. Browser.sendMessage() must be used to send multiple message to the same url in the same Javascript function.

MFString data_changed [] :
Will emit a the received message, when a broadcasted message matches the url of the Message node.