It seems at least several properties on DetailsViewArgs are not used at all by the struct details view, which is confusing because one expects them to work.
I’ve got a PR here to add the one I specifically needed, but probably something that should be audited in general to avoid this disconnect:
https://github.com/EpicGames/UnrealEngine/pull/13822
Steps to Reproduce
- Create a StructureDetailView with a ShouldForceHideProperty delegate set to hide all properties.
- Show a struct in the detail view.
Expected Result:
All properties are hidden.
Actual Result:
No properties are hidden.
FDetailsViewArgs BaseArgs;
BaseArgs.ShouldForceHideProperty.BindLambda([this](const TSharedRef<FPropertyNode>& PropertyNode)->bool
{
return true;
});
FStructureDetailsViewArgs StructArgs;
TSharedRef<IStructureDetailsView> StructDetails = PropertyEditor.CreateStructureDetailView(BaseArgs, StructArgs, StructOnScope);