# IDetailLayoutBuilder.GetProperty() does not work when the path refers to members of a class

**URL:** <https://forums.unrealengine.com/t/idetaillayoutbuilder-getproperty-does-not-work-when-the-path-refers-to-members-of-a-class/503448>\
**Category:** Editor Scripting\
**Tags:** details-panel-ui, unreal-engine, Code, editor, question, UE4-27\
**Created:** [March 2, 2022, 4:07pm UTC](https://forums.unrealengine.com/t/idetaillayoutbuilder-getproperty-does-not-work-when-the-path-refers-to-members-of-a-class/503448 "2022-03-02T16:07:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ais\_kamat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ais\_kamat](https://forums.unrealengine.com/u/Ais_kamat)\
**Post date:** [March 2, 2022, 4:07pm UTC](https://forums.unrealengine.com/t/idetaillayoutbuilder-getproperty-does-not-work-when-the-path-refers-to-members-of-a-class/503448/1 "2022-03-02T16:07:10Z")

</div>

I want to customise how a class is shown in the details panel. Access members of the class using GetProperty() always returns invalid handle.

UCLASS()  
class UMyClass : public UObject  
{  
GENERATED\_BODY ()

public:  
UPROPERTY ( EditAnywhere )  
FString BaseString;  
…  
};

UCLASS()  
class UMyActorCmp : public UActorComponent  
{  
GENERATED\_BODY ()

public:  
UPROPERTY ( EditAnywhere, Category = “Configuration” )  
MyClass\* m\_Native;  
}

The customization is applied to UMyActorCmp, In CustomizeDetails, function I used IDetailLayoutBuilder.GetProperty() with the following options:

1. GetProperty( TEXT ( “m\_Native.BaseString” ) )
2. GetProperty( TEXT ( “UMyClass.BaseString” ), nullptr, TEXT ( “m\_Native” ) )

None of them seems to work. The IPropertyHandle that they return is not valid.

---

<div class="post-metadata">

**Author:** ![Jeangby](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jeangby](https://forums.unrealengine.com/u/Jeangby)\
**Post date:** [December 6, 2024, 11:19am UTC](https://forums.unrealengine.com/t/idetaillayoutbuilder-getproperty-does-not-work-when-the-path-refers-to-members-of-a-class/503448/2 "2024-12-06T11:19:11Z")

</div>

I also have the same problem in Unreal 5.4. I need the help. 😭
