Daverkex
(Daverkex)
1
UENUM(BlueprintType)
enum class EType : uint8
{
ET_a,
ET_b,
ET_c,
};
DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FDelegate, EType, enum, float, B);
error C2061: syntax error : identifier ‘EType’ in foo.generated.h
How can declare the enum for accept in the delegate?
Hi,
This was a bug that was recently fixed here:
https://github.com/EpicGames/UnrealEngine/commit/fab3d634d93f067b4154f7cb7ac3cc77281808a8
You can work around it for now by moving your enum to a different header and including it before the .generated.h.
Steve