Hello!
As the title implies, I was wondering why TSets don’t support the TitleProperty meta specifier. After some digging, I’ve found how maps and arrays are handled via SPropertyEditorArrayItem. Specifically, Maps and Arrays pass the support check and thus construct a SPropertyEditorArrayItem for the entries. However, TSet defaults to SPropertyEditor.
I’ve been able to get it working by adding a new SPropertyEditorSetItem that is a copy of SPropertyEditorArrayItem apart from changing the ::Supports function to check if the owning property is a FSetProperty.
This seems to work fine and displays the title property as you’d expect. However, this made me question a couple things.
- Why weren’t TSets supported if this change was so simple. Am I missing something crucial with sets that shouldn’t allow this behaviour? Or is it a case of the team just hadn’t gotten around to adding it?
- If it’s that it just hasn’t been addressed and this is a viable solution, is a simpler solution to instead check in SPropertyEditorArrayItem::Supports if the owning property is a FSetProperty and return true in that case as well?
Any information you have on this would be helpful!
Kind regards,
Darien
[Attachment Removed]