浏览代码

Bump package version

/main
Peter Bay Bastian 7 年前
当前提交
a65c3ca4
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 6
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Importers/ShaderGraphImporter.cs
  2. 2
      MaterialGraphProject/Assets/UnityShaderEditor/package.json

6
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Importers/ShaderGraphImporter.cs


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

var text = GetShaderText<MaterialGraph>(ctx.assetPath, out configuredTextures);
if (text == null)
text = errorShader;
var name = Path.GetFileNameWithoutExtension(ctx.assetPath);
string shaderName = string.Format("graphs/{0}", name);
text = text.Replace("Hidden/GraphErrorShader2", shaderName);

}
RegisterShaders(importedAssets);
}
}
}

2
MaterialGraphProject/Assets/UnityShaderEditor/package.json


{
"name": "com.unity.shadergraph",
"description": "Shader Graph",
"version": "0.1.14",
"version": "0.1.15",
"unity": "2018.1",
"dependencies": {
}
正在加载...
取消
保存