Hi,
The code below crashes the unrealbuildtool. If i move my event declarations outside the class it works… i think it has to do with the combination of UProperty() and the declaration of events. The final error produced is: Unrecognized type ‘FOnConfirmed’
UCLASS(BlueprintType)
class UMyConfirmationDialog : public UUserWidget
{
GENERATED_BODY()
public:
UMyConfirmationDialog(const FObjectInitializer& ObjectInitializer);
/**
* Should be called from blueprints when the dialog is confirmed
*/
DECLARE_EVENT(UMyConfirmationDialog, FOnConfirmed);
UPROPERTY(BlueprintAssignable, Category = "UI")
FOnConfirmed OnConfirmed;
/**
* Should be called from blueprints when the dialog is cancelled
*/
DECLARE_EVENT(UMyConfirmationDialog, FOnCancelled);
UPROPERTY(BlueprintAssignable, Category = "UI")
FOnCancelled OnCancelled;
.... some more code here..
};