C++ blueprint use pointer

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;
}

201613-sp170630_162649.png

but i hope it can be like this:

201614-sp170630_162834.png

void Foo(UPARAM(ref) int32& Param); .h

void MyClass::Foo(UPARAM(ref) int32 & Param)
{
} .cpp

& is not called a pointer, it’s called a reference.

thanks for your reply :slight_smile: