Is it possible to use slate widget in UMG?

Lets say I’ve created slate widget using c++, is there any way to use this widget in UMG?

Hi Shiko777,

You certainly can! In fact, all of the built in UMG widgets are wrappers on slate widgets. For example, if you open up ‘Border.h’ you’ll see that it has a pointer to an ‘SBorder’ instance, which is the Slate border class.

You can look at any existing UMG widget implementation for an idea of how to write your own. Variables preceded by the UPROPERTY() macro will appear in the details pane. You’ll need to override SynchronizeProperties(), which will be called to feed the values back into the underlying Slate widget.

1 Like

Thank you a lot for your answer and specially for providing example.

Learn how to embed UMG into Slate with our tutorial here.