This feature requires the Immerse SDK Enterprise Edition
This is different to the free Immerse SDK. Contact [email protected] if you require access.
Before a message can be sent, it must be defined. Without this definition, the server will not know how to handle the message and so it will be ignored. See below for the ways to define a message.
Identify the message (primarily for developer reference)
Unique identification for this message type. This is automatically generated when using an Object Reference definition.
Who can send this message?
If the message should be saved and resent to connecting users.
Broadcast to Self
If the message should be also sent to the sender for processing.
This input method is used when you want to explicitly define the Message Type for your definition. You will likely want to define a constant or enum somewhere within your code to make this value easily accessible.
When using an object reference to create a message definition, the Message Type isn't generated until the application is built. Therefore, when sending a message or registering your message handler for this type, you will need to reference that same object.
This way of defining a message is useful when creating modules intended for use across multiple projects, where you cannot guarantee a unique message type otherwise.
Updated 6 months ago