Hi, I’m creating some custom async nodes by inheriting from from UBlueprintAsyncActionBase and my current implementation is causing 2 functions to appear in the editor. Here’s the header code for one of my nodes:
// GetCurrentUser.h
#include "CoreMinimal.h"
#include "Kismet/BlueprintAsyncActionBase.h"
#include "Http.h"
#include "DiscordBPLib.h"
#include "GetCurrentUser.generated.h"
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FGetCurrentUserResponseDelegate, const FMember&, Member);
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FGetCurrentUserFailureDelegate);
UCLASS()
class DISCORDBPLIB_API UGetCurrentUser : public UBlueprintAsyncActionBase
{
GENERATED_BODY()
public:
UPROPERTY(BlueprintAssignable)
FGetCurrentUserResponseDelegate OnSuccess;
UPROPERTY(BlueprintAssignable)
FGetCurrentUserFailureDelegate OnFail;
virtual void Activate() override;
void HandleRequestCompleted(FHttpRequestPtr Request, FHttpResponsePtr Response, bool bSuccess);
static FString AccessCode;
UFUNCTION(BlueprintCallable)
static UGetCurrentUser* GetCurrentUser();
};
and here’s what I’m seeing in the editor.
I just want to get rid of the node which is returning a GetCurrentUser object reference.
I’ve tried getting rid of the UFUNCTION() Macro but it gets rid of both functions in the editor.
Not sure what else to try?