Broadcast

Broadcast message

After you set your listeners, you can broadcast the event anytime in your game from anywhere. Be it Actor, UMG, Components doesn't matter. To broadcast, simply call the Broadcast node from Agora Global Events World Subsystem.

In C++, you can access the Agora Global Events World Subsystem via the static function Get and then call the Broadcast Message.

Make sure you add this plugin as dependency otherwise you'll get LNK errors.

In your source file, add below code inside your desired function:

auto AgoraEventsSubsystem = UAgoraGlobalEventsWorldSubsystem::Get(*GetWorld());
AgoraEventsSubsystem->BroadcastMessage();

Last updated