Issue using TMap as a parameter for Multicast Delegate

Hello, I’m trying to set a TMap as a parameter for a Dynamic Delegate but compiler gives me

FEquipmentset ’ - type must be a UCLASS, USTRUCT or UENUM

error.

` typedef TMap FEquipmentSet;

DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnEquipmentStateChanged, EEquipmentState, NewState, FEquipmentSet, EquipmentConfiguration);` 

Any idea of the reason?

Unfortunately, as UnrealHeaderTool doesn’t understand typedefs. In that case, you should put your map inside a USTRUCT and then pass that instead.

1 Like