Getting UProperty value as text.

Hello!

Having a UProperty, I would like to get its current value as a human readable string. What is the best way to do this?

One possibility of course is casting to each possible subtype of UProperty and doing it in appropriate manner, but this is neither elegant nor convenient. It seems UProperty::ExportTextItem function might do what I need, but I am confused by its usage.

That’s the right function.

UPropertyPtr->ExportTextItem( OutText, PointerToPropertyLocationOnInstance, PointerToPropertyLocationOnDefaultObject (can be null), InObject (Parent object), ExportFlags, NULL );