Is there a way to get the event sender on the handler without explicitly passing it in the event data explicitly?

It would be less verbose if I could do just:

otherNode->SendEvent("eventName");

but still be able to access otherNode on the handler.

Is there a way?

Pretty sure it’s available from the Context (GetEventSender(), I think, though I’m not at my computer now to check).

1 Like

Thanks Nate. The method is on Object, and so present in almost all classes that will handle events.

2 Likes