Hi. I’m currently trying to create a customization class for one of my struct but I’m a bit stuck at the moment.
I’ve used IPropertyTypeCustomization on some other structs and it works great, but those are small and not very complicated.
I have a larger struct that I would like to break down into categories that I can show/hide depending on certain parameters. I’ve been looking through the source and correct me if I’m wrong but the IPropertyTypeCustomization doesn’t support categories?
What I’ve found though, from searching, is that in order to do this I would need to use the IStructureDetailsView? It seems like such a roundabout way of doing this and on top of that it doesn’t work with my current setup. I would need to rewrite swaths of code for that to work given how IStructureDetailsView works (basically being a proxy object for structs just to make it work with IDetailsView, which only accepts UObjects, and not UStructs, which is also… a choice).
Just to have categories show up.
I tried some things. There’s a .AddGroup() function in the IDetailChildrenBuilder, which seemed promising but for some reason Epic didn’t write any code to allow users to show/hide groups. Which is very strange.
The only solution I can think of right now is to basically create widgets for each property. Which would be one for name and one for value, that’s 68 widgets total. Then I would go and manually set visibility for each and every one of them depending on the conditions. That would be absurd, and most certainly not the intended way.
Have anyone managed to solve this problem, or similar?