[C++, DetailCustomization, UI] How to change the text (STextBlock) in details panel?

Hello!

I have a class inherited from USplineComponent and I customize it’s details panel in my Editor module.

I want to change text in the STextBlock in row with spline point’s Rotation. This row is in category “Selected Points“ and shows only if one or more spline points are selected.

I have my method where I customize details:

virtual void CustomizeDetails(IDetailLayoutBuilder& DetailBuilder) override;

The problem is I don’t know how I can get this STextBlock (Slate Widget) with DetailBuilder variable.
I tried to get Properties of category “Selected Points“, but it’s always empty (as I understand, all rows in Selected Points are not UPROPERTY, and created from SplineCurves data). But how can I edit it?

Hi,

Without being too knowledgeable about that part, one or two times I dealth with this.

Afaik generally void FWhatever::CustomizeDetails(IDetailLayoutBuilder& Detail) id for editor building blocks not for editing already reflected class properties. So if engine didn’t expose it via IDetailCustomization, you don’t mutate it

So If I really want a different UX over there to make it more robust, I just go through reflected categories, hide whatever I need, build a new one and prioritize it up.

1 Like