SendEvent
- C++
- Blueprint
UFUNCTION(BlueprintCallable, Category = "Event System")
void SendEvent(ULES_Event* Event);
Parameters | |
---|---|
Event | Event object that will be sent. |
Sends the Event to all observers listening for this type of event on the channel.
Example usage:
- C++
- Blueprint
// 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));