Compile fail after new C++ class from Button

Did you add this in you PROJECT.Build.cs ?

// Uncomment if you are using Slate UI
PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" });

EDIT:

Did you include Runtime/UMG/Public/Components/ContentWidget.h ?

Hello everyone !

I have a project I can’t load anymore because of the creation of a new class !
I reproduced the issue in another new project :

1 - I create a new C++ project

2 - I create a new C++ class, with Button as parent

3 - When Unreal tries to compile, fails, fails everywhere ! :smiley:

I have two obvious questions : Why ? And how could I start my project again ? As soon as i try to open It, it warns me of bad compiling and doesn’t open up. I tried to delete binaries, save and intermediate but it only went worse (it tries to compile before warning me up now).

Thank you !

Thank you for your answer, but saddly it does’nt change anything. I tried tu add UMG module too without success…

I’ve edit my answer. Please check it. Also, use the comment section when you actually need to comment something :slight_smile: