#pragma once
#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "MyBFL.generated.h"
UCLASS()
class TESTING_API UMyBFL : public UBlueprintFunctionLibrary {
GENERATED_BODY()
public:
UFUNCTION(BlueprintCallable, BlueprintPure)
static int Add(int A, int B){
return A + B;
}
UFUNCTION(BlueprintCallable)
static void AddTo(UPARAM(ref) int &A, int B){
A += B;
}
};
References: