Hi, I Trying change value of variable in C++… I Debug and test in begin play editor and in Screen variable printed changed, more not happining change in component…
I use Property->SetPropertyValue_InContainer(Object, PropertyValue); in My Code… is correct?
if (UNumericProperty *NumericProperty = Cast<UNumericProperty>(*Property))
{
if (NumericProperty->IsFloatingPoint())
{
if (NumericProperty->GetName() == PropertyName){
Property->SetPropertyValue_InContainer(Object, PropertyValue);
}
else{
FsParametersComponents xParam;
xParam.ParameterName = NumericProperty->GetName();
xParam.ParameterType = Property->GetTypeName();
xParam.ParameterGroup = Property->GetFullGroupName(true);
xParam.ParameterValueFloat = Property->GetPropertyValue_InContainer(Object);
xItems.Add(xParam);
}
}
}