How to set button image in c++?

andrew_torkovich
Mon, 24 Aug 2020 13:16:49 +0000
UI

This is how I tried to do this:

But it gives me an error:
MainMenuWidget.cpp.obj : error LNK2019: unresolved external symbol “__declspec(dllimport) public: struct FButtonStyle & __cdecl FButtonStyle::SetNormal(struct FSlateBrush const &)” (_imp?SetNormal@FButtonStyle@@QEAAAEAU1@AEBUFSlateBrush@@@Z) referenced in function “protected: virtual void __cdecl UMainMenuWidget::NativePreConstruct(void)” (?NativePreConstruct@UMainMenuWidget@@MEAAXXZ)

Help me please, I am not good in c++.

2 posts - 1 participant