浏览代码

Merge pull request #1416 from Unity-Technologies/sg/fix-default-textures

Fix default textures
/main
GitHub 7 年前
当前提交
fe4b3c81
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      com.unity.shadergraph/Editor/Importers/ShaderGraphImporter.cs

4
com.unity.shadergraph/Editor/Importers/ShaderGraphImporter.cs


using UnityEditor.Experimental.AssetImporters;
using UnityEditor.ShaderGraph.Drawing;
[ScriptedImporter(13, ShaderGraphImporter.ShaderGraphExtension)]
[ScriptedImporter(14, ShaderGraphImporter.ShaderGraphExtension)]
public class ShaderGraphImporter : ScriptedImporter
{
public const string ShaderGraphExtension = "shadergraph";

}
catch (Exception)
{
configuredTextures = new List<PropertyCollector.TextureInfo>();
configuredTextures = new List<PropertyCollector.TextureInfo>();
return shaderString ?? k_ErrorShader.Replace("Hidden/GraphErrorShader2", shaderName);
}
}

正在加载...
取消
保存