# BlueprintCallable function with delegate doesn't work if the delegate has a TArray of UObjects

**URL:** <https://forums.unrealengine.com/t/blueprintcallable-function-with-delegate-doesnt-work-if-the-delegate-has-a-tarray-of-uobjects/2561175>\
**Category:** C++\
**Tags:** unreal-engine, Event, CPP, Blueprint, question\
**Created:** [June 16, 2025, 11:31pm UTC](https://forums.unrealengine.com/t/blueprintcallable-function-with-delegate-doesnt-work-if-the-delegate-has-a-tarray-of-uobjects/2561175 "2025-06-16T23:31:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andyvyking](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andyvyking/32/641039_2.png) [@andyvyking](https://forums.unrealengine.com/u/andyvyking)\
**Post date:** [June 16, 2025, 11:31pm UTC](https://forums.unrealengine.com/t/blueprintcallable-function-with-delegate-doesnt-work-if-the-delegate-has-a-tarray-of-uobjects/2561175/1 "2025-06-16T23:31:06Z")

</div>

I’m writing a Blueprint callable wrapper for the AssetManager, and I ran into an issue with my delegate/event setup. I accept a singlecast delegate from blueprint callable function, bind it to a multicast delegate, and broadcast it when the operation finishes. I’ve done this with a few different objects.

However for some reason it doesn’t want to play nice with my `TArray<UObject*>` parameter.

Here’s my declaration:

```cpp
DECLARE_DYNAMIC_DELEGATE_OneParam(FDataAssetProviderOnAsyncLoadAssetBP, TArray<UObject*>, DataAssetType);
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FDataAssetProviderOnAsyncLoadAsset, TArray<UObject*>, DataAssetType);

UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
class DEVILDJ_API UDJDataAssetProvider : public UActorComponent
{
	GENERATED_BODY()
public:	
	UFUNCTION(BlueprintCallable)
	void AsyncLoadAssets(FDataAssetProviderOnAsyncLoadAssetBP Delegate);
//...

```

However in the editor blueprint, I can’t hook up an Event to the actual function call. I get an editor compilation error:

 ![Screenshot 2025-06-16 155845](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/3/e/f3e38d51aee1d9e099ed6d72d02a25bfa4a877cf.png)

This is even when I drag out from the pin directly. I’ve recompiled everything to double check it wasn’t some cached signature. So the error message is wrong here.

I can work around this by removing the parameter and having the array accessible directly on the object, but is there a reason why this particular implementation doesn’t work?

---

<div class="post-metadata">

**Author:** ![MagForceSeven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/magforceseven/32/906563_2.png) [@MagForceSeven](https://forums.unrealengine.com/u/MagForceSeven)\
**Post date:** [June 16, 2025, 11:54pm UTC](https://forums.unrealengine.com/t/blueprintcallable-function-with-delegate-doesnt-work-if-the-delegate-has-a-tarray-of-uobjects/2561175/2 "2025-06-16T23:54:47Z")

</div>

Reflection and blueprints can sometimes be a little persnickety about what type is expected. Have you tried changing the array parameter to a const-reference?

```auto
DECLARE_DYNAMIC_DELEGATE_OneParam(FDataAssetProviderOnAsyncLoadAssetBP, const TArray<UObject*>&, DataAssetType);
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FDataAssetProviderOnAsyncLoadAsset, const TArray<UObject*>&, DataAssetType);

```
