[UE4] 打包后材质丢失问题的解决方案:检查材质 Usage 勾选项

1,835 阅读1分钟

在网上看到了别人说打包后材质丢失一般是资源没有 Cooked 或者应用材质的 A 类 Actor 没有勾选 Used with A

我的问题是草的材质丢失了,Foliage 实际上是 Instancesd Static Mesh。我一开始检查确认了材质都有 Cooked,也勾选了 Used with Instancesd Static Mesh,但是没选 Used with Static Lighting

我本来觉得 Static Lighting 没有也行,因为我的光源选的是 Moblie,后来发现还是要选 Used with Static Lighting 才能正常

16054fd1a63bdec64c8f8c073c05bc2.jpg

图 1 没选 Used with Static Lighting

image.png

图 2 材质 Usage

c02661280555b90978db2fcb5a1dccd.jpg

图 3 选择了 Used with Static Lighting