Unreal 5 pure C++ widget

Hello, I’m new to Unreal 5 C++. I’m trying to create a widget in C++ only. It should have a canvas panel and a text block inside.
I did some research on the internet, but the results are either Blueprint & C++ or outdated Unreal 4 codes.
It would be nice if someone can give a simple example!

o/
In C++ only dig for Slate.

It’s UE’s UI framework on which all Widgets are based on, Unreal Engine’s frontend is made in Slate.

Tutorials might be outdated as this is old system, though during UnrealFest2022 afaik there was a panel for basic of Slate iirc, dunno if it was recorded and released yet.
UMG relation to Slate is that UMG extends Slate - UMG adds WYSIWYG UMG editor on top of Slate really. I’d say in 80-90% projects UMG is used, Slate for more advanced needs/editor extensions.

I’ll add that UE5 didn’t change much in this matter compared to UE4 - there is still Slate, UMG as previously and UE still is soaked in it deep :wink:
Newest addition was CommonUI plugin and also a presentation about it during UnrealFest2022
Common UI Introduction · ben🌱ui.

1 Like