Extending UserWidget in 4.8

Hello.

I read 's tutorial on how to do this, but I can’t seem to get it to work (I did everything as he did in the update tutorial).

When I build it, I get errors about some slate stuff, and I have added slate etc to my build file ( PublicDependencyModuleNames.AddRange(new string] { “Core”, “CoreUObject”, “Engine”, “InputCore”, “AIModule”, “UMG”, “Slate”, “SlateCore” }); )
I don’t know whether or not I’m dumb, or is it not possible in 4.8?

Do you have any ideas? If needed I can provide the errors I get.

Can you post the error(s) you get?
Its hard to say but the above is correct am using this for my own project.
Using 4.8 so the tutorial should work fine.

I be happy to help you out, but i need some more info.

Sorry for the delay, I thought I would get an email when someone replied to my thread.

These are the errors I get: Screenshot - 9caf431198a34f0a5d84498effce65f9 - Gyazo

It looks like you have forgot to include some header files.
Currently i have only these two headers in my project header.



// YourProjectName.h
#include "Runtime/UMG/Public/UMG.h"
#include "Runtime/UMG/Public/Blueprint/WidgetBlueprintLibrary.h"

At the bottom of the wiki page there are some headers that you may need.
For the FReply structure

Including the Slate.h in our project header will also probeboly do the trick.

Ah, thanks I’ll try that. :slight_smile: