You can set it by [UMaterialInstanceDynamic::SetVectorParameterValueByInfo][1]. And how to set FMaterialParameterInfo is [here][2].
Here is a simple example.