Unresolved External with ComboBoxString Delegate

Hi everyone,

I am having an issue setting up the OnSelectionChanged event for the ComboBoxString.
I keep getting Unresolved External Errors, but to my knowledge I am doing everything right.

This is in my .h file

public:
    UFUNCTION()
        void FocusOn(FString dropDownInt, ESelectInfo::Type type);

This is in my .cpp file

void NativeConstruct() {
    QuestionNumberDropDown->OnSelectionChanged.AddDynamic(this, &UQuizWidget::FocusOn);
}

void UQuizWidget::FocusOn(FString dropDownInt, ESelectInfo::Type type) {
    ...
}

Here is the error I keep getting:

    Severity	Code	Description	Project	File	Line	Suppression State
    Error	LNK2019	unresolved external symbol "__declspec(dllimport) class UEnum * __cdecl Z_Construct_UEnum_SlateCore_ESelectInfo(void)" (__imp_?Z_Construct_UEnum_SlateCore_ESelectInfo@@YAPEAVUEnum@@XZ) referenced in function "void __cdecl `dynamic initializer for 'public: static struct UE4CodeGen_Private::FBytePropertyParams const Z_Construct_UFunction_UQuizWidget_FocusOn_Statics::NewProp_type''(void)" (??__E?NewProp_type@Z_Construct_UFunction_UQuizWidget_FocusOn_Statics@@2UFBytePropertyParams@UE4CodeGen_Private@@B@@YAXXZ)	Vet_Med_Anatomy
1 Like

Include module “SlateCore” in your Build.cs dependencies

2 Likes

Thanks for the help!

Same issue here, this solution helped.
After this I found how to properly add it to Build.cs, as an addition to the answer: