Set Palette category for UMG C++ classes?

I’m creating my own subclasses of UMG classes, and I’d like to put them all in a custom category in the UMG palette.

How can I do this?

Hi! All you need to do is override UWidget::GetPaletteCategory() in your derived class like this:

#if WITH_EDITOR

const FText UMyCustomButton::GetPaletteCategory()
{
	return LOCTEXT("CustomPaletteCategory", "My custom category!");
}

#endif
1 Like

Just wanna give a little help for beginners! (In UE5.1)
In .h file, use this:

virtual const FText GetPaletteCategory() override;