是否有可用的参数来控制不编译材质

我需要定位一些COOK问题,需要屏蔽材质编译相关内容

尝试过使用​COOK时添加参数 -NoShaderCompile, 但是显然不能正常工作,会有大量异常崩溃退出,看代码并没有很好处理这个模式

是否有可用的方式屏蔽材质编译​

Steps to Reproduce

Hi,

好像没有现成的cook命令,下面这段代码好像可以用于跳过shader编译,但可能要改代码。

另外如果是想跳过某种类型的UClass,可以试试配置在ProjectSettings里的ClassesExcludedOnDedicatedServer和ClassesExcludedOnDedicatedClient里,看看是否起效。

GShaderCompilingManager->SkipShaderCompilation(true); GShaderCompilingManager->SetAllowForIncompleteShaderMaps(true);