解决错误:OnAssignMaterial must return a persistent material (AssetDatabase.CreateAsset)
项目中有需求对AssetPostprocessor.OnAssignMaterialModel进行自定义处理,代码如下publicMaterialOnAssignMaterialModel(Materialmat,Rendererrender){if(mat.shader.name.Contains("Particles")){mat.shader=Shader.Find("Mobile/Part