private void GenerateSearchWindow() { _searchWindow = ScriptableObject.CreateInstance <NodeSearchWindow>(); _searchWindow.Init(_graphView, this); //侦听创建节点请求事件,空格键或右键 _graphView.nodeCreationRequest = ctx => SearchWindow.Open(new SearchWindowContext(ctx.screenMousePosition), _searchWindow); }
private void AddSearchWindow(EditorWindow editorWindow) { _searchWindow = ScriptableObject.CreateInstance <NodeSearchWindow>(); _searchWindow.Init(editorWindow, this); nodeCreationRequest = context => SearchWindow.Open(new SearchWindowContext(context.screenMousePosition), _searchWindow); }
public void AddSearchWindow(StrategyGraphViewWIndow editorWindow) { _searchWindow = ScriptableObject.CreateInstance <NodeSearchWindow>(); _searchWindow.Configure(editorWindow, this); nodeCreationRequest = context => SearchWindow.Open(new SearchWindowContext(context.screenMousePosition), _searchWindow); }
private void AddSearchWindow(DialogueGraph editorWindow) { searchWindow = ScriptableObject.CreateInstance <NodeSearchWindow>(); searchWindow.Configure(editorWindow, this); nodeCreationRequest = context => SearchWindow.Open(new SearchWindowContext(context.screenMousePosition), searchWindow); searchWindow.tree = CreateMenuOptions(); }
private void AddSearchWindow(EditorWindow editorWindow) { //get data provider _searchWindow = ScriptableObject.CreateInstance <NodeSearchWindow>(); //and the graph view to searchwindow _searchWindow.Init(editorWindow, this); //sub to the graph api and open window nodeCreationRequest = context => SearchWindow.Open(new SearchWindowContext(context.screenMousePosition), _searchWindow); }
private void AddSearchWindow() { searchWindow = ScriptableObject.CreateInstance <NodeSearchWindow>(); searchWindow.Init(dialogueGraph, this); nodeCreationRequest = context => SearchWindow.Open(new SearchWindowContext(context.screenMousePosition), searchWindow); }