1. 程式人生 > >用c++ 新增全域性藍圖函式

用c++ 新增全域性藍圖函式

必須繼承UBlueprintFunctionLibrary

藍圖方法定義成static 

新增藍圖巨集 UFUNCTION(BlueprintCallable,Category="Custom|myfun")


UCLASS()
class CREATEBPLINKLIB_API UMyBPCallFunction : public UBlueprintFunctionLibrary
{
GENERATED_BODY()


public:
UFUNCTION(BlueprintCallable,Category="Custom|myfun")
static void GetCustomName(FString& myName);

/*
abc
*/
UFUNCTION(BlueprintCallable,Category="Custom|myfun")
static void SetCustomName(FString setName,FString& custom);
};