Pass blueprint UStruct by reference

You can make BlueprintCallable function take a struct by reference by prepending UPARAM(ref) to the type of the parameter declaration, for example:

UFUNCTION(BlueprintCallable)
void ScaleInPlace(UPARAM(ref) FVector& Vector, float Scale);
5 Likes