Hey, does anyone know a clean solution to exposing non dynamic delegates to blueprints? By exposing, I mean that binding a blueprint function to it somehow.
// These are non dynamic delegates, meaning they can't be exposed to BP. // Sure I could just turn them into dynamic delegates, but this whole class is native and // I want to handle Blueprints as a separate "layer". _ DECLARE_EVENT(USteamMatchmakingPolicy, FOnStartSteamMatchmakingComplete); FOnStartSteamMatchmakingComplete StartSteamMatchmakingComplete; _ DECLARE_EVENT_TwoParams(USteamMatchmakingPolicy, FOnSteamMatchmakingComplete, const FName /** SessionName */, const ESteamMatchmakingCompleteResult /** Result */); FOnSteamMatchmakingComplete SteamMatchmakingComplete; _ DECLARE_EVENT(USteamMatchmakingPolicy, FOnCancelSteamMatchmakingComplete); FOnCancelSteamMatchmakingComplete CancelSteamMatchmakingComplete; _ DECLARE_EVENT_TwoParams(USteamMatchmakingPolicy, FOnSteamMatchmakingStateChanged, const ESteamMatchmakingState /** OldState */, const ESteamMatchmakingState /** NewState */); FOnSteamMatchmakingStateChanged SteamMatchmakingStateChanged;
Right now, I have dynamic variants of these delegates in a different source file and I’m calling them when the native delegates are fired. That works as well, I’m just looking for a better solution.