# How to modify property "section" in details panel in editor

**URL:** <https://forums.unrealengine.com/t/how-to-modify-property-section-in-details-panel-in-editor/611250>\
**Category:** C++\
**Tags:** UProperty, unreal-engine, UE5-0, question\
**Created:** [July 21, 2022, 8:50pm UTC](https://forums.unrealengine.com/t/how-to-modify-property-section-in-details-panel-in-editor/611250 "2022-07-21T20:50:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fizziksnerd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fizziksnerd](https://forums.unrealengine.com/u/fizziksnerd)\
**Post date:** [July 21, 2022, 8:50pm UTC](https://forums.unrealengine.com/t/how-to-modify-property-section-in-details-panel-in-editor/611250/1 "2022-07-21T20:50:06Z")

</div>

I’m trying to figure out how to edit the “section” a custom property category falls within the details panel in editor. At the moment, custom categories only fall under the “all” section. I’d like to add a new section so I can quickly jump to custom properties.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/c/f/ecf32d9ae278332f5771530f7828f79854b052be.png)

---

<div class="post-metadata">

**Author:** ![SolidSk](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/solidsk/32/1194513_2.png) [@SolidSk](https://forums.unrealengine.com/u/SolidSk)\
**Post date:** [July 21, 2022, 11:22pm UTC](https://forums.unrealengine.com/t/how-to-modify-property-section-in-details-panel-in-editor/611250/2 "2022-07-21T23:22:38Z")

</div>

Change UPROPERTY’s Category:

```auto
UPROPERTY(Category="Section Name")

```

---

<div class="post-metadata">

**Author:** ![fizziksnerd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fizziksnerd](https://forums.unrealengine.com/u/fizziksnerd)\
**Post date:** [July 21, 2022, 11:40pm UTC](https://forums.unrealengine.com/t/how-to-modify-property-section-in-details-panel-in-editor/611250/3 "2022-07-21T23:40:13Z")

</div>

Thank you for the reply, but I’m referring to the sections listed above the property list (All, General, Actor, Animation, LOD, etc). The circled “Config” is an example of one of my custom categories. I’m looking to create a section that only includes my custom categories so I can quickly find my editable/visible variables at runtime.

I think what I’m referring to is called sections… when I click the gear icon and uncheck “show sections” those buttons go away.

---

<div class="post-metadata">

**Author:** ![SolidSk](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/solidsk/32/1194513_2.png) [@SolidSk](https://forums.unrealengine.com/u/SolidSk)\
**Post date:** [July 22, 2022, 1:28am UTC](https://forums.unrealengine.com/t/how-to-modify-property-section-in-details-panel-in-editor/611250/4 "2022-07-22T01:28:06Z")

</div>

Great question!  
What I found is:

**Creating Section**

File: _Engine\Source\Editor\DetailCustomizations\Private\DetailCustomizations.cpp_

```auto
	FPropertyEditorModule& PropertyModule = FModuleManager::GetModuleChecked<FPropertyEditorModule>(PropertyEditor);

// Actor
	{
		{
			TSharedRef<FPropertySection> Section = PropertyModule.FindOrCreateSection("Actor", "Actor", LOCTEXT("Actor", "Actor"));
			Section->AddCategory("Actor");
		}

		{
			TSharedRef<FPropertySection> Section = PropertyModule.FindOrCreateSection("Actor", "Misc", LOCTEXT("Misc", "Misc"));
			Section->AddCategory("Cooking");
			Section->AddCategory("Input");
			Section->AddCategory("Replication");
		}

		{
			TSharedRef<FPropertySection> Section = PropertyModule.FindOrCreateSection("Actor", "Streaming", LOCTEXT("Streaming", "Streaming"));
			Section->AddCategory("World Partition");
			Section->AddCategory("HLOD");
		}
	}

```

**Using:**

**FPropertyEditorModule**  
[https://docs.unrealengine.com/4.26/en-US/API/Editor/PropertyEditor/FPropertyEditorModule/](https://docs.unrealengine.com/4.26/en-US/API/Editor/PropertyEditor/FPropertyEditorModule/)

I’ve never used this module, but I hope it helps you in some way

---

<div class="post-metadata">

**Author:** ![fizziksnerd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fizziksnerd](https://forums.unrealengine.com/u/fizziksnerd)\
**Post date:** [July 22, 2022, 3:06am UTC](https://forums.unrealengine.com/t/how-to-modify-property-section-in-details-panel-in-editor/611250/5 "2022-07-22T03:06:06Z")

</div>

YES!!! That did the trick. Thanks for the help!

For reference, here’s the relevant code and result (I dumped it in my game mode constructor to test it out… probably should go somewhere more appropriate, but it works for now).

```auto
	static const FName PropertyEditor("PropertyEditor");
	FPropertyEditorModule& PropertyModule = FModuleManager::GetModuleChecked<FPropertyEditorModule>(PropertyEditor);

#define LOCTEXT_NAMESPACE "PropertySection"
	TSharedRef<FPropertySection> Section = PropertyModule.FindOrCreateSection("Object", "GM", LOCTEXT("GM", "GM"));
	Section->AddCategory("Config");
	Section->AddCategory("GM");
#undef LOCTEXT_NAMESPACE

```

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/b/6/5b6c02cac69073d6a1841b17cd40a41747291521.png)

---

<div class="post-metadata">

**Author:** ![Klian](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/klian/32/1207571_2.png) [@Klian](https://forums.unrealengine.com/u/Klian)\
**Post date:** [February 14, 2023, 11:32pm UTC](https://forums.unrealengine.com/t/how-to-modify-property-section-in-details-panel-in-editor/611250/6 "2023-02-14T23:32:17Z")

</div>

Thank you so much, this is exactly what I was looking for.  
Just one question tho, about those properties you’re passing in the function:

`PropertyModule.FindOrCreateSection("Object", "GM", LOCTEXT("GM", "GM"));`

_“Object”_ → **ClassName** = The class you want this section to show up in the details panel (UObject in this case)  
_“GM”_ → **Section Name** = Unique name for the new section

_LOCTEXT(“GM”, “GM”)_ = **DisplayName** → DisplayName on the details panel

So, if I want the new section to show up in Pawn derived classes only, I should use:

`PropertyModule.FindOrCreateSection("Pawn", "GM", LOCTEXT("GM", "GM"));`

The question is, if I want to select more than one class, which is the best solution?  
Just adding a new “FindOrCreateSection” function for each class?

> PropertyModule.FindOrCreateSection(“Pawn”, “GM”, LOCTEXT(“GM”, “GM”));  
> PropertyModule.FindOrCreateSection(“MyClass1”, “GM”, LOCTEXT(“GM”, “GM”));  
> PropertyModule.FindOrCreateSection(“MyClass2”, “GM”, LOCTEXT(“GM”, “GM”));

Thanks!
