I have a structure defined in the editor and stored as an asset, which is a UUserDefinedStruct, I am trying to get properties and their default values from this struct in C++. I tried to use UScriptStruct::InitializeScriptStruct and UProperty::InitializeValue but they seem to just fill the buffer with zeros.
Is there any way to get default values from UUserDefinedStruct that works both in editor and in shipping builds?