How do I replicate a material from an object on the server to the corresponding object on the client?

When you say load from package, what exactly is meant by that?

Also, I set my objects material to also be replicated across

UPROPERTY(Replicated)
	UMaterialInstanceDynamic* m_BallMaterial;

but it still doesn’t seem to work correctly, guessing it has something to do with loading my texture with:

UTexture2D* tmpTexture = Cast(StaticLoadObject(UTexture2D::StaticClass(), NULL, *(PathName)));