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?
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
Just wanna give a little help for beginners! (In UE5.1)
In .h file, use this:
virtual const FText GetPaletteCategory() override;