Essentially, A bug in --[Link Removed]-- comes up with only customized struct property.
If a struct doesn't have customization, it can be displayed compact without "Element X" node hierarchy.
It is the same as UE4.23 behavior.
I write a code for it.
bool FDetailPropertyRow::NeedsKeyNode(TSharedRef<FPropertyNode> InPropertyNode, TSharedRef<FDetailCategoryImpl> InParentCategory)
{
UStructProperty* KeyStructProp = Cast<UStructProperty>(InPropertyNode->GetPropertyKeyNode()->GetProperty());
UStructProperty* ValueStructProp = Cast<UStructProperty>(InPropertyNode->GetProperty());
return KeyStructProp != nullptr || GetPropertyCustomization(InPropertyNode->GetPropertyKeyNode().ToSharedRef(), InParentCategory).IsValid() ||
( ValueStructProp != nullptr && GetPropertyCustomization(InPropertyNode, InParentCategory).IsValid() );
}
Before
[Image Removed]
After
[Image Removed]
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-87321 in the post.
1 |
Component | UE - Editor - UI Systems - Slate |
---|---|
Affects Versions | 4.24 |
Created | Jan 23, 2020 |
---|---|
Resolved | Jul 19, 2022 |
Updated | Jul 19, 2022 |