Archive 17/01/2023.

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

cirosantilli-china

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?

SirNate0

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

cirosantilli-china

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