getnamo / GlobalEventSystem-Unreal

Loosely coupled internal event system plugin for the Unreal Engine.
MIT License
276 stars 44 forks source link

Bind function which takes event as parameter #9

Closed Skylonxe closed 4 years ago

Skylonxe commented 4 years ago

Like any other delegate binding function.

getnamo commented 4 years ago

Great idea no reason to not have a variant of that type

getnamo commented 4 years ago

Specific delegates do not appear possible without defining them inside the binding function and we don't necessarily know the emit signature at bind time. May need to emit a wildcard property with bp autocast conversions as an option instead.

getnamo commented 4 years ago

With v0.3.1 (https://github.com/getnamo/global-event-system-ue4/commit/0c8aa5423d8dc24a3a2035f647d101c9fb04e4d3)

Wildcard event delegates are supported with bp autocast conversions.

e.g. WildcardEventDelegate

getnamo commented 4 years ago

the To String property cast will try to convert mismatched so you can preview what you're receiving before changing to match

getnamo commented 4 years ago

released in https://github.com/getnamo/global-event-system-ue4/releases/tag/0.4.0