Create an UMG Widget, or subclass an existing UMG widget
In the previous tutorial we covered creating a C++ subclass of
UUserWidget
.
The alternative to this is to create a C++ subclass of an existing
Good for creating new compound widgets that you want to re-use everywhere
e.g. a button with an icon and text
RebuildWidget()
is where you set up stuff
Look at existing widgets to see how they work
We can see inside the RebuildWidget()
function for UButton
It creates a new instance of the Slate class SButton
.
In the next and final tutorial of the series, we will discuss how to create subclasses of Slate widgets.