EXP3.C++控制蓝图节点输入输出
小于 1 分钟
实践
1. 新建一个蓝图函数库类
2. Const控制
UFUNCTION(BlueprintCallable, Category ="TEST",meta = ( tooltip = "值传递"))
static void PassbyValue(TArray<ACameraActor*>Camera, int32 test);
UFUNCTION(BlueprintCallable, Category ="TEST",meta = ( tooltip = "值引用"))
static void PassbyConstReference(const TArray<ACameraActor*>& Camera, const int32 test);
UFUNCTION(BlueprintCallable, Category ="TEST",meta = ( tooltip = "const修饰的值引用"))
static void PassbyReference(TArray<ACameraActor*>& Camera,int32 &test);
3. UPARAM(ref)
UFUNCTION(BlueprintCallable)
void FillDogInfo(FDogInfo& OutResult);
UFUNCTION(BlueprintCallable)
void UseAndFillDogInfo(
UPARAM(ref) FDogInfo& SearchParams);
UFUNCTION(BlueprintCallable)
void UseDogInfo(const FDogInfo& SearchParams);