UE4编辑器下用C++修改蓝图对象的属性值
if (auto Property = FindFProperty<FStrProperty>(Class, "A"))
{
Object->Modify();
Property->SetPropertyValue_InContainer(Object.GetClass(), "OK");
}
if (auto Property = FindFProperty<FStrProperty>(Class, "A"))
{
Object->Modify();
Property->SetPropertyValue_InContainer(Object.GetClass(), "OK");
}