# How to compare a property handle on one object a property on another object? 

**URL:** <https://forums.unrealengine.com/t/how-to-compare-a-property-handle-on-one-object-a-property-on-another-object/2729514>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [May 12, 2026, 10:04pm UTC](https://forums.unrealengine.com/t/how-to-compare-a-property-handle-on-one-object-a-property-on-another-object/2729514 "2026-05-12T22:04:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [May 12, 2026, 10:04pm UTC](https://forums.unrealengine.com/t/how-to-compare-a-property-handle-on-one-object-a-property-on-another-object/2729514/1 "2026-05-12T22:04:54Z")

</div>

I am attempting to make a customization for a particular blueprint class that checks each property within the class and determines how many subclasses for the blueprint have the same value or a different value. For each property I have a _TSharedRef\<IPropertyHandle\> propertyHandle_ and a pointer to the original _UMyBlueprintAsset\* originalAsset_. I am using the global _UObject::GetDerivedClasses_ function to get all derived objects, then accessing the CDO of each class to acquire _UMyBlueprintAsset\* childAsset_

At first I’ve had success using _propertyHandle-\>GetProperty()-\>GetValue\_InContainer(childAsset, localPointer)_ to get a void pointer to the raw value and compare if the original and child properties are identical. However, we have found that if the property in question is a struct with the meta tag ShowOnlyInnerProperties, this implementation breaks. The propertyHandle lists the correct structProperty-\>innerProperty in its description, but getting the property pointer from the handle returns the property for just the struct and not UMyBlueprintAsset, causing a crash when attempting to get the value from childAsset.

How can I best work with a propertyHandle that’s interacting with the ShowOnlyInnerProperties tag? How can I retrieve the property value properly from a child asset? Is there some context I’m missing?

---

<div class="post-metadata">

**Author:** ![Steve\_Robb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Steve\_Robb](https://forums.unrealengine.com/u/Steve_Robb)\
**Post date:** [May 19, 2026, 7:53pm UTC](https://forums.unrealengine.com/t/how-to-compare-a-property-handle-on-one-object-a-property-on-another-object/2729514/2 "2026-05-19T19:53:21Z")

</div>

Hi David,

I’m not too familiar with **ShowOnlyInnerProperties** but I believe that if the property encapsulated by the handle is referring to the inner struct, you will not be able to use **GetValue\_InContainer** with the asset in order to get to it.

Instead, you’ll probably need to first get the offset from the parent first:

```auto
void* ChildAddressToUse = childAsset;
void* OriginalAddressToUse = origAsset;
if (TSharedPtr<IPropertyHandle> ParentHandle = PropertyHandle->GetParentHandle())
{
    ChildAddressToUse = ParentHandle->GetProperty()->ContainerPtrToValuePtr<void>(ChildAddressToUse);
    OriginalAddressToUse = ParentHandle->GetProperty()->ContainerPtrToValuePtr<void>(OriginalAddressToUse);
    PropertyHandle = ParentHandle;
}
 
// Compare
bool bIdenticalProps = PropertyHandle->GetProperty()->Identical(OriginalAddress, ChildAddress);

```

You might have to do this in a loop if you have multiple outers - walk the outer chain and build up an array, then traverse the array backwards and continually offset them starting from your asset pointers.

Let me know if this works,

Steve
