/Engine/Source/Runtime/Engine/Public/MaterialShared.h
This class takes care of all of the details you need to worry about when modifying aUMaterialon the main thread. This class shouldalwaysbe used when doing so!
class FMaterialUpdateContext