Updating an existing listener

Sometimes you might want to update an existing listener with a new tag without changing their bound function. In that case, you can simply call Update Listener node.

You can specify which listener to update and what tag to use.

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

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

Add below code under your desired function.

auto AgoraEventsSubsystem = UAgoraGlobalEventsWorldSubsystem::Get(*GetWorld());
AgoraEventsSubsystem->UpdateListener(this, {});

Last updated