Exceptions while compiling UserWidget.h in CPP

It’s a linker error. You need to add “UMG” as a module dependency in your MyProject.Build.cs file.

You also don’t need all the includes posted above. All you need is “Blueprint/UserWidget.h”

3 Likes