# How do I customize the details panel of the Static Mesh editor?

**URL:** <https://forums.unrealengine.com/t/how-do-i-customize-the-details-panel-of-the-static-mesh-editor/1540693>\
**Category:** Editor Scripting\
**Tags:** details-panel, unreal-engine, editor, Plugins, question, CPP\
**Created:** [December 20, 2023, 2:48pm UTC](https://forums.unrealengine.com/t/how-do-i-customize-the-details-panel-of-the-static-mesh-editor/1540693 "2023-12-20T14:48:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FelixPiktiv](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FelixPiktiv](https://forums.unrealengine.com/u/FelixPiktiv)\
**Post date:** [December 20, 2023, 2:48pm UTC](https://forums.unrealengine.com/t/how-do-i-customize-the-details-panel-of-the-static-mesh-editor/1540693/1 "2023-12-20T14:48:26Z")

</div>

I am currently working on customizing the details panel for the Static Mesh editor with the aim to trigger some functionality (currently only logging) when pressing a button in **Unreal Engine 4.27**. But editing this particular details panel is proving to be more difficult than expected.

I was able to successfully add the button to the StaticMeshActor details panel using either category “Materials” or “StaticMesh” as can be seen in the image and code below.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/a/0/0a03d2cb5251667ad8645d72f071d95fbfaff81d.jpeg)

```auto
void FMeshHoleFixerModule::StartupModule()
{
	// Register details customization
	{
		FPropertyEditorModule& PropertyModule = FModuleManager::LoadModuleChecked<FPropertyEditorModule>("PropertyEditor");
		PropertyModule.RegisterCustomClassLayout("StaticMeshActor", FOnGetDetailCustomizationInstance::CreateStatic(&FStaticMeshDetailsCustomization::MakeInstance));
		PropertyModule.NotifyCustomizationModuleChanged();
	}
}

```

```auto
TSharedRef<IDetailCustomization> FStaticMeshDetailsCustomization::MakeInstance()
{
	return MakeShareable(new FStaticMeshDetailsCustomization);
}

void FStaticMeshDetailsCustomization::CustomizeDetails(IDetailLayoutBuilder& DetailBuilder)
{
	IDetailCategoryBuilder& CategoryBuilder = DetailBuilder.EditCategory("Materials");

	CategoryBuilder.AddCustomRow(FText::FromString("My Button"))
	.ValueContent()
	[
		SNew(SButton)
		.Text(FText::FromString("Click Me"))
		.OnClicked(this, &FStaticMeshDetailsCustomization::OnMyButtonClick)
	];
}

FReply FStaticMeshDetailsCustomization::OnMyButtonClick()
{
	UE_LOG(LogTemp, Warning, TEXT("Button Clicked!"));
	return FReply::Handled();
}

```

I have however been unable to add this button to any of the categories of the Static Mesh editor details panel. I can’t find any documentation suggesting which **ClassName** to pass into **RegisterCustomClassLayout** or which **CategoryName** to pass into **EditCategory**.

Has anyone done this before and know how this can be achieved?

Preferably, I want the button to be added to the various LOD categories (i.e. LOD 0, LOD 1 etc.) just below Reduction Settings.
