Hi !How can I call this FUNCTION?

How can I call this function with ( &InArray)?

我该怎么调用这个反射到蓝图入参带引用的函数?

When I call this function,Why its input stand at output。。。

我在蓝图调用这个函数时,入参InArray怎么出现在了输出的引脚上?

thank you for your help~

请大佬们给点提示,谢谢~

  • 对于输入引用参数,使用 const 修饰并配合 UPARAM(Ref) 标记

  • 对于输出引用参数,使用 UPARAM(Ref) 标记但不使用 const

need UPARAM(Ref) tags

UFUNCTION(BlueprintCallable, Category="MerryGoRound Function")
void InitData(const TArray<FXiuXianStruct>& InArray);

In the functions of Blueprint callable, non-const references will be transformed into return values.

在Blueprint callable的函数中,非const 的引用将会变成返回值,所以需要用const修饰InArray, 否则将是“outArray”