浏览代码

Fix bug causing ShaderGraph files to open in IDE rather than ShaderGraph editor (the issue was the plug-in that is bundled with Rider)

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

4
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Importers/ShaderGraphImporterEditor.cs


using UnityEditor.ShaderGraph;
using UnityEditor.ShaderGraph.Drawing;
using UnityEngine;
using Debug = System.Diagnostics.Debug;
using Object = UnityEngine.Object;
[CustomEditor(typeof(ShaderGraphImporter))]

return true;
}
[OnOpenAsset]
[OnOpenAsset(0)]
Debug.Log(instanceID);
var path = AssetDatabase.GetAssetPath(instanceID);
return ShowGraphEditWindow(path);
}
正在加载...
取消
保存