避免错误调试
This commit is contained in:
@@ -48,7 +48,9 @@ void ADynamicSMCActor::UpdateSMCMesh()
|
|||||||
StaticMesh = NewObject<UStaticMesh>();
|
StaticMesh = NewObject<UStaticMesh>();
|
||||||
MeshComponent->SetStaticMesh(StaticMesh);
|
MeshComponent->SetStaticMesh(StaticMesh);
|
||||||
// add one material slot
|
// add one material slot
|
||||||
StaticMesh->GetStaticMaterials().Add(FStaticMaterial());
|
FStaticMaterial StaticMaterial;
|
||||||
|
StaticMaterial.UVChannelData = FMeshUVChannelInfo(1.0f);
|
||||||
|
StaticMesh->GetStaticMaterials().Add(StaticMaterial);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MeshComponent)
|
if (MeshComponent)
|
||||||
|
Reference in New Issue
Block a user