How to create a filter button for custom property catgories in Details Panel?

Hi, I want to add a button in Details Panel to quickly filter some of my custom categories.
Is it possible in UE5?

Desired button location is shown bellow:
Capture

I need a button labeled “Controller” to filter only Controller Category. Just like the “General”, “LOD”, “Actor”.

Some of my variables are shown below.

UPROPERTY(EditAnywhere, BlueprintReadWrite, Interp, Category = "Controller")
	bool EnableController = true;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Interp, Category = "Controller")
	int ControllerRadius = 13;
2 Likes

Hi, Did you manage to find Solution?
I’ve been looking for exact feature :sweat_smile:

Check this out

1 Like

That was a good hint @SunbeamOut

To add button with custom category.
In your editor module startup add this code.
Editor module in your project should be named YourProjectNameEditor.cpp

FPropertyEditorModule& PropertyModule = FModuleManager::GetModuleChecked<FPropertyEditorModule>("PropertyEditor");		
{
	{
		TSharedRef<FPropertySection> Section = PropertyModule.FindOrCreateSection("Actor", "Controller", LOCTEXT("Controller", "Controller"));
		Section->AddCategory("Controller");
	}
}

PropertyModule.NotifyCustomizationModuleChanged();

This will show a button that filters categories and shows only that configured by you (named Controller in this example).

I’m having difficulty finding the editor.cpp file would you be able to share where this is located in the source? Or is this not project specific and required building the engine from code?

EDIT: Nevermind I found the solution as well as some additional customization options for the editor