Unity2018使用ShaderForge unityshaderforge2018ProceduralMaterialProceduralTexture
程序员文章站
2022-05-17 15:47:59
...
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
导入后一切恢复正常
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
导入后一切恢复正常