I tried to change this line: MyDynamicMaterial = (UMaterialInstanceDynamic*)MyBaseMaterial;
to this: MyDynamicMaterial = MyMesh->CreateAndSetMaterialInstanceDynamic(0);
Now the game won’t crash at the set vector parameter line, but now there is no material applied to my mesh at all when it spawns. Why is that? Can anyone clear this dynamic material creation up for me please, I am having a really hard time finding a solution from the available resources. Thanks.