問題
UFUNCTION( BlueprintCallable ) static void Something1( FVector& VR , const FIntVector VC );
このような UE4/C++ で生成される Blueprint ノードは、 VC を入力ピン、 VR を出力ピンにしてしまう。 VR も入力ピンの意図で実装した場合に Blueprint で問題となる。
参照の関数パラメーターを Blueprint で入力ピンにする方法
// 仮引数に UPARAM(ref) を付ける UFUNCTION( BlueprintCallable ) static void Something2( UPARAM(ref) FVector& VR , const FIntVector VC );
絵
