Im following a blueprint tutorial and trying to convert it to C++ but i'm having some difficulties. When using the C++ Static function UPlayFabMultiplayerAPI::CreateMatchMakingTicket it takes in 4 parameters a FMultiplayerCreateMatchmakingTicketRequest, a success delegate, a failure delegat and a custom data object. Im able to setup the ticket struct pretty easily. I'm struggling with the delegates. They dont exist in the playfab namespace so I cannot just use "CreateUObject" Like i've done for all the other delegates I've used for logging in and registering the user. Does anyone know the correct syntax to fill out this function in C++ with no errors?
/** Create a matchmaking ticket as a client. */ UFUNCTION(BlueprintCallable, Category = "PlayFab | Multiplayer | Matchmaking ", meta = (BlueprintInternalUseOnly = "true")) static UPlayFabMultiplayerAPI* CreateMatchmakingTicket(FMultiplayerCreateMatchmakingTicketRequest request, FDelegateOnSuccessCreateMatchmakingTicket onSuccess, FDelegateOnFailurePlayFabError onFailure, UObject* customData);