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

**URL:** <https://forums.unrealengine.com/t/how-to-create-a-filter-button-for-custom-property-catgories-in-details-panel/622326>\
**Category:** C++\
**Tags:** UProperty, unreal-engine, UE5-0, question\
**Created:** [August 5, 2022, 10:17pm UTC](https://forums.unrealengine.com/t/how-to-create-a-filter-button-for-custom-property-catgories-in-details-panel/622326 "2022-08-05T22:17:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MAGKilller](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MAGKilller](https://forums.unrealengine.com/u/MAGKilller)\
**Post date:** [August 5, 2022, 10:17pm UTC](https://forums.unrealengine.com/t/how-to-create-a-filter-button-for-custom-property-catgories-in-details-panel/622326/1 "2022-08-05T22:17:47Z")

</div>

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](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/6/9/869ed77526d9dab4a621f6819b07805626592552.png)

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

Some of my variables are shown below.

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

```

---

<div class="post-metadata">

**Author:** ![VeryHotShark](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VeryHotShark](https://forums.unrealengine.com/u/VeryHotShark)\
**Post date:** [January 10, 2023, 3:58pm UTC](https://forums.unrealengine.com/t/how-to-create-a-filter-button-for-custom-property-catgories-in-details-panel/622326/2 "2023-01-10T15:58:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![SunbeamOut](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SunbeamOut](https://forums.unrealengine.com/u/SunbeamOut)\
**Post date:** [January 10, 2023, 4:09pm UTC](https://forums.unrealengine.com/t/how-to-create-a-filter-button-for-custom-property-catgories-in-details-panel/622326/3 "2023-01-10T16:09:35Z")

</div>

Check this out

> [@How to modify property "section" in details panel in editor](https://forums.unrealengine.com/t/how-to-modify-property-section-in-details-panel-in-editor/611250/4):
>
> Great question! What I found is: Creating Section File: Engine\Source\Editor\DetailCustomizations\Private\DetailCustomizations.cpp FPropertyEditorModule& PropertyModule = FModuleManager::GetModuleChecked\<FPropertyEditorModule\>(PropertyEditor); // Actor { { TSharedRef\<FPropertySection\> Section = PropertyModule.FindOrCreateSection("Actor", "Actor", LOCTEXT("Actor", "Actor")); Section-\>AddCategory("Actor"); } { TSharedRef\<FPropertySection\> Section = PropertyModule.FindOrCreat…

---

<div class="post-metadata">

**Author:** ![bASteker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bASteker](https://forums.unrealengine.com/u/bASteker)\
**Post date:** [March 7, 2024, 3:04pm UTC](https://forums.unrealengine.com/t/how-to-create-a-filter-button-for-custom-property-catgories-in-details-panel/622326/4 "2024-03-07T15:04:43Z")

</div>

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

```auto
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).

---

<div class="post-metadata">

**Author:** ![Booo904](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Booo904](https://forums.unrealengine.com/u/Booo904)\
**Post date:** [September 17, 2024, 4:10pm UTC](https://forums.unrealengine.com/t/how-to-create-a-filter-button-for-custom-property-catgories-in-details-panel/622326/5 "2024-09-17T16:10:43Z")

</div>

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
