UE5自定义蓝图节点(二)

继承于UBlueprintAsyncActionBase的类,异步输出节点的实现方法,代码测试正常

.h

// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "Kismet/BlueprintAsyncActionBase.h"
#include "MyClassAsyncActionBase.generated.h"

/**
 * 
 */
  
DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FResponsDeleget,int32,ID,FString,Data);

UCLASS()
class NEWCOUSTNODE_API UMyClassAsyncActionBase : public UBlueprintAsyncActionBase
{
	GENERATED_BODY()

public:
	UPROPERTY(BlueprintAssignable)
	FResponsDeleget Onsuccess;

	UPROPERTY(BlueprintAssignable)
	FResponsDeleget OnFail;

	UPROPERTY()
	int temp = 0;

	void isEqual();

	UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly = "true"))
	static UMyClassAsyncActionBase* MyClassAsyncActionBase(const int ID);

	virtual void Activate() override;
};
/*
这是一个 Unreal Engine 项目的头文件(.h 文件),其中

你可能感兴趣的:(ue5,算法)