Set Property Components In some yes, for others not because? the logic is the same

Hi, I created a function to set the properties of some components within the Unreal. But there are some components that work and others that do not work … Example: In my case here I can set the Relative Location of a SpotLight, and I can not set the RelativeLocation a Cube. Because logic is not the same?

There is another strange thing … there are times that some properties only work when I start in StandAlone in PIE mode does not change the property …

if (TypeExecute == ETypeExecute::SET_PARAMETERS){
			*StructProperty->ContainerPtrToValuePtr<FVector>(Object) = HUDProperty.PropertyValue.Value_Vector;
			Object->PostEditChange();
		}