Download

SetMaterial() on SkeletalMeshComponent always resulting in the default UDK mat showing



for (i=0; i<SkelMesh.GetNumElements(); i++) {
        SkelMesh.SetMaterial(i, myMaterial);
}


I’m really not sure why, but each time i attempt to set a different material on a skeletal mesh component, it just results in the default UDK grid material showing.

When I log the current material in it’s tick(), it says the material that I set it, but it just doesn’t show on the skel mesh. Any ideas why this isn’t working? Thanks