Skip to main content

SendEvent

UFUNCTION(BlueprintCallable, Category = "Event System")
void SendEvent(ULES_Event* Event);
Parameters
EventEvent object that will be sent.

Sends the Event to all observers listening for this type of event on the channel.

Example usage:

// Alternative way to get the global Event System object:
// ULES_EventSystem* EventSystem = GetGameInstance()->GetSubsystem<ULES_EventSubsystem>()->EventSystem;

ULES_EventSystem* EventSystem = ULES_EventSubsystem::GetGlobalEventSystem(this);
EventSystem->SendEvent(LES::Create<ULES_StringEvent>("Event!", this, "My Channel", this));