# Adding an Editor Actor Picker via Slate

**URL:** <https://forums.unrealengine.com/t/adding-an-editor-actor-picker-via-slate/432643>\
**Category:** UI\
**Tags:** unreal-engine, slate, question\
**Created:** [August 28, 2018, 3:44pm UTC](https://forums.unrealengine.com/t/adding-an-editor-actor-picker-via-slate/432643 "2018-08-28T15:44:11Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Shen\_Yuju](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shen\_Yuju](https://forums.unrealengine.com/u/Shen_Yuju)\
**Post date:** [November 16, 2023, 7:03pm UTC](https://forums.unrealengine.com/t/adding-an-editor-actor-picker-via-slate/432643/4 "2023-11-16T19:03:22Z")

</div>

```auto
// in YourWindow.h
class xxx YourWindow : public SCompoundWidget
{

// other code...

FString ActorPath;
FString HandleActorPath() const {return ActorPath;}
void OnActorChanged(const FAssetData& InAsset) {ActorPath = InAsset.GetObjectPathString();}
}

// in YourWindow.cpp
SNew(SObjectPropertyEntryBox)
		.AllowedClass(AActor::StaticClass())
		.AllowClear(true)
		.DisplayBrowse(true)
		.DisplayUseSelected(true)
		.ObjectPath(this, &YourWindow::HandleActorPath)
		.OnObjectChanged(this, &YourWindow::OnActorChanged);

```

---

_[View the full topic](https://forums.unrealengine.com/t/adding-an-editor-actor-picker-via-slate/432643)._
