Changing motion blur of the camera via c++

Hello guys,

I have been trying to change the camera motion blur via c++ by using followig:
Camera->PostProcessSettings.MotionBlurAmount = 0.2;
Camera->PostProcessSettings.bOverride_MotionBlurAmount = 0.2;

However, the motion blur does not change at all.
Thanks in advance

bOverride_MotionBlurAmount is a boolean, so you should be setting it to ‘true’.

Camera->PostProcessSettings.bOverride_MotionBlurAmount = true;
Camera->PostProcessSettings.MotionBlurAmount = 0.2f;