浏览代码

Update right click menu.

/main
Tim Cooper 7 年前
当前提交
d2e30d64
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 5
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/GraphEditorView.cs

5
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/Views/GraphEditorView.cs


using System.Collections.Generic;
using System.Linq;
using UnityEditor.Experimental.UIElements.GraphView;
using UnityEditor.ShaderGraph.Drawing;
using UnityEditor.ShaderGraph;
using UnityEditor.Graphing;
using UnityEditor.ShaderGraph.Drawing.Inspector;
using Edge = UnityEditor.Experimental.UIElements.GraphView.Edge;

}
m_SearchWindowProvider.Initialize(editorWindow, m_Graph, m_GraphView);
m_GraphView.AddManipulator(new NodeCreator(m_SearchWindowProvider));
m_GraphView.nodeCreationRequest = (c) => SearchWindow.Open(new SearchWindowContext(c.screenMousePosition), m_SearchWindowProvider);
//m_GraphView.AddManipulator(new NodeCreator(m_SearchWindowProvider));
foreach (var node in graph.GetNodes<INode>())
AddNode(node);

正在加载...
取消
保存