GlobalEventSystem-Unreal icon indicating copy to clipboard operation
GlobalEventSystem-Unreal copied to clipboard

C++ Emit doesn't fill prop pointers correctly for lambda/delegate listeners

Open getnamo opened this issue 3 years ago • 3 comments

If we use the BP execGESEmitEventOneParam our emit data will already contain the correct prop pointers when the event gets processed.

However if we emit directly from c++ i.e. via FGESHandler::DefaultHandler()->EmitEvent(EmitData); this won't necessarily fill the prop pointer if your receiver is a lambda or delegate.

Needs a fill/conversion step before we handle the emit

getnamo avatar Mar 05 '21 23:03 getnamo

tagged branch: https://github.com/getnamo/global-event-system-ue4/tree/feaute-cpp-lambda-receiver

getnamo avatar Mar 05 '21 23:03 getnamo

Only remaining non-working pair is c++ struct to bp. All other pairs work. Note added in readme, merging current branch until more dev time is found.

https://github.com/getnamo/global-event-system-ue4#current-important-issue

getnamo avatar Apr 05 '21 06:04 getnamo

5.1 changes (https://github.com/getnamo/GlobalEventSystem-Unreal/commit/21c0d12f885d785adf7425e90e76db31fe8f49b8) have not solved this issue yet

getnamo avatar Nov 17 '22 08:11 getnamo