getnamo / GlobalEventSystem-Unreal

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

Consider using wildcards for parameters and/or implement also multiparam support #10

Closed Skylonxe closed 3 years ago

Skylonxe commented 4 years ago

Multiparameter events could be created by using special object as param (see JSON blueprint functions).

getnamo commented 4 years ago

Currently supports one wildcard param (any literal type, struct, or uobject) with type checking on listeners.

I do want to support multi-param but I'm leaning toward maybe adding a macro type + button to add/remove additional wildcard params from the function. Haven't figured out the unreal code for that yet. In meantime a temporary solution is to wrap your multiparam data in a custom blueprint struct.

getnamo commented 3 years ago

Added wildcard unbind event for cleanup for this feature at https://github.com/getnamo/global-event-system-ue4/commit/b57a0f5f4163b68db13aa11622250c175a79e69c

getnamo commented 3 years ago

Wildcard is currently supported. Multi-param support will be tracked here: https://github.com/getnamo/global-event-system-ue4/issues/3

getnamo commented 3 years ago

Release: https://github.com/getnamo/global-event-system-ue4/releases/tag/0.7.0e