How do you adjust Material Parameters through code

It would need to be a UMaterialInstanceDynamic and then you would just use the Set functions. A quick google gives us a nice thread on here showing some code on how to use it