header:
UCLASS()
class LBP_API ULBPFunctions : public UBlueprintFunctionLibrary
{
GENERATED_BODY()
public :
UFUNCTION(BlueprintCallable, Category = “LBP/Math”)
static float AddAndSetInt(int& inVal, int add = 1);
}
cpp
float ULBPFunctions::AddAndSetInt(int & inVal, int add)
{
return inVal += add;
}
but i hope it can be like this: