Issue with Material Instances (both Constant and Dynamic)

If you look at MeshComponent.cpp and look for:
void UMeshComponent::SetVectorParameterValueOnMaterials(const FName ParameterName, const FVector ParameterValue)
you will see that the code for the “Set Vector Parameter Value On Materials” BP node actually creates a MID :

UMaterialInstanceDynamic* DynamicMaterial = Cast<UMaterialInstanceDynamic>(MaterialInterface);
				if (!DynamicMaterial)
				{
					DynamicMaterial = CreateAndSetMaterialInstanceDynamic(MaterialIndex);
				}
				DynamicMaterial->SetVectorParameterValue(ParameterName, ParameterValue);

so to make it clear: by using this method you are not editing the Material/MIC directly.
the documentation is still correct, it’s your conclusions that were skewed by this fact :slight_smile:

6 Likes