# How to get source object in detail panel

**URL:** <https://forums.unrealengine.com/t/how-to-get-source-object-in-detail-panel/329570>\
**Category:** C++\
**Tags:** unreal-engine, editor, CPP, question\
**Created:** [August 22, 2015, 3:47pm UTC](https://forums.unrealengine.com/t/how-to-get-source-object-in-detail-panel/329570 "2015-08-22T15:47:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GodOfPen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GodOfPen](https://forums.unrealengine.com/u/GodOfPen)\
**Post date:** [August 22, 2015, 3:47pm UTC](https://forums.unrealengine.com/t/how-to-get-source-object-in-detail-panel/329570/1 "2015-08-22T15:47:06Z")

</div>

I followed this article to make my own detail panel

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

And I know I can use IPropertyHandle to change the property’s value.  
But is there any way to just directly get the source object which is displayed by the detail panel so I can just edit the value easily?Because the object is a struct with a TArray which is hard to edit the value of array.

---

<div class="post-metadata">

**Author:** ![ttvd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ttvd](https://forums.unrealengine.com/u/ttvd)\
**Post date:** [August 24, 2015, 6:00pm UTC](https://forums.unrealengine.com/t/how-to-get-source-object-in-detail-panel/329570/2 "2015-08-24T18:00:12Z")

</div>

I think it’s something like, get UProperty from IPropertyHandle, cast it to UStructProperty. Then use -\>Struct to figure out / check RTTI info. Then use ContainerPtrToValuePtr to get actual pointer to fields in your struct. At that point you can use offset of your field to get pointer to this object.

---

<div class="post-metadata">

**Author:** ![GodOfPen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GodOfPen](https://forums.unrealengine.com/u/GodOfPen)\
**Post date:** [August 25, 2015, 9:03am UTC](https://forums.unrealengine.com/t/how-to-get-source-object-in-detail-panel/329570/3 "2015-08-25T09:03:02Z")

</div>

Thanks! I’ll try your way!
