如果声明代理中需要传入数组,如下
DECLARE_DYNAMIC_DELEGATE_OneParam(FSerachDataByStringValDelegate,
TArray<FPOIData>, poiDataSearchArr);
在蓝图层面是会报错的,报错信息如下
customevent_0 signature error: the function/event ‘customevent_0’ does not match the necessary signature - has the delegate or function/event changed?
解决办法如下:
DECLARE_DYNAMIC_DELEGATE_OneParam(FSerachDataByStringValDelegate,
const TArray<FPOIData>&, poiDataSearchArr);