cant use my delegate in BP

//UPROPERTY(BlueprintAssignable, category = "Steam Subsystem BP Callbacks")
FOnCreatePartyComplete CreatePartyComplete;

but if I tried using UPROPERTY I got

error : Unrecognized type 'FOnCreatePartyComplete' - type must be a UCLASS, USTRUCT or UENUM

You need to #include header that defines

hmm… I thought that #include “Online.h” will include all necessary other stuff

nothing to works… I added #include “OnlinePartyInterface.h” and got same error
how I can add exists delegate from this header to my custom bp class?

You could do this:


#include "Test.generated.h"

DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FMyCustomOnCreatePartyComplete, ...);
//DECLARE_DELEGATE_OneParam(FMyCustomOnCreatePartyComplete, ..); <- This is causing error but I don't know why.

class ATest : public AActor

    FMyCustomOnCreatePartyComplete OnCreatePartyComplete;


For some reason DECLARE_DELEGATE_* is causing the error you posted:

error : Unrecognized type 'FOnCreatePartyComplete' - type must be a UCLASS, USTRUCT or UENUM

I would use my own delegate to expose to Blueprint, as you wouldn’t have much trouble if Unreal changes or deprecate the delegate you are trying to use. I had this problem once.
Just Broadcast your own delegate when FOnCreatePartyComplete is called.

My problem with bad known ue engine, and c++. So it’s not easy for me without examples :
i don’t know what is it means Just Broadcast your own delegate in this case…

p.s. epics’ community the worst support community that I known in all this fkng world. open source without any of help…

Delegate from OnlinePartyInterface.h

DECLARE_DELEGATE_ThreeParams(FOnCreatePartyComplete, const FUniqueNetId& /*LocalUserId*/, const TSharedPtr<const FOnlinePartyId>& /*PartyId*/, const ECreatePartyCompletionResult /*Result*/);

Custom delegates can be listed as DECLARE_DYNAMIC_MULTICAST_DELEGATE_XParam

but in this case I not sure what about diff within DECLARE_DELEGATE_XParams and DECLARE_DYNAMIC_MULTICAST_DELEGATE_XParam

I think that I’ve next problem with params wich not registered in ue, such as base types: FString, bool, int32 for example.
And when I tried add the new structure I’ve got error in USTRUCT section

struct FStructCreatePartyComplete

        const FUniqueNetId& UniqueId;

        const TSharedPtr<const FOnlinePartyId>& PartyID;

        const ECreatePartyCompletionResult CompleteResult;

P.S. I wanna to use new structure as single param for my custom delegate…

Were you able to resolve this?