---
title: "Unity2018使用ShaderForge"
author: "贝壳水母"
date: "2019-07-04T09:58:04Z"
tags: []
categories: ["移动开发"]
slug: "unity2018-shaderforge"
draft: false
lastmod: "2019-07-04T10:07:55Z"
id: 2442390
url: "https://shineonly.iteye.com/blog/2442390"
---

Unity2018中ProceduralMaterial和ProceduralTexture不再支持，会报：
UnityEngine.ProceduralMaterial' is obsolete:Built-in support for Substance Designer materials has been removed from Unity. To continue using Substance Designer materials, you will need to install Allegorithmic’s external importer from the Asset Store.’

另外，编辑的时候窗口会无法打开，报这一段代码mSetCameraOnlyDrawMesh空指针：
mSetCameraOnlyDrawMesh.Invoke( null, new object{ cam } );

其实下载了substance也没用，原版的ShaderForge也不推荐使用并且不更新了，但因为有资源还在用，只能寻找替代版本，找到一个分支：
<https://github.com/roguesleipnir/ShaderForge>
导入后一切恢复正常