Fixed! See here to reset visual studio project, which fixed it for me
Hey guys!
I've been following every tutorial on the world wide web on how to get c++ and umg working.
Here's what I've done:
After doing *just* this, everything runs. However... when I added a child class of UUserWidget, it all crashed down on me.
Basically, the engine cannot find anything beyond the "UMG/Public" folder. Anything else, such as #include "Anchors.h", (which is found in the slate folder) cannot be registered:

Feast your eyes on the infinite errors within the UMG.h
Many files including userwidget have this problem.
Anyone have ideas? Im so sad I cant get it working lol!!
Thanks!
Hey guys!
I've been following every tutorial on the world wide web on how to get c++ and umg working.
Here's what I've done:
- Did the whole "PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "UMG", "Slate", "SlateCore" });" thing
- Added all these to the project header:
#include "Runtime/UMG/Public/UMG.h"
#include "Runtime/UMG/Public/UMGStyle.h"
#include "Runtime/UMG/Public/Slate/SObjectWidget.h"
#include "Runtime/UMG/Public/IUMGModule.h"
#include "Runtime/UMG/Public/Blueprint/UserWidget.h" - swung a dead cat chanting rhymes
After doing *just* this, everything runs. However... when I added a child class of UUserWidget, it all crashed down on me.
Basically, the engine cannot find anything beyond the "UMG/Public" folder. Anything else, such as #include "Anchors.h", (which is found in the slate folder) cannot be registered:
Feast your eyes on the infinite errors within the UMG.h
Many files including userwidget have this problem.
Anyone have ideas? Im so sad I cant get it working lol!!
Thanks!
Comment