public SearcherGraphView(GraphViewEditorWindow window, CommandDispatcher commandDispatcher) : base(window, commandDispatcher, "")
        {
            styleSheets.Add(AssetDatabase.LoadAssetAtPath <StyleSheet>(AssetHelper.AssetPath +
                                                                       "SmartSearch/Stylesheets/SearcherGraphView.uss"));

            AddToClassList(ussClassName);

            UnregisterCallback <ValidateCommandEvent>(OnValidateCommand);
            UnregisterCallback <ExecuteCommandEvent>(OnExecuteCommand);
        }
예제 #2
0
 public SidePanelObserver(GraphViewEditorWindow window)
     : base(new[] { nameof(GraphToolState.SelectionState) },
            new[] { nameof(GraphToolState.ModelInspectorState) })
 {
     m_Window = window;
 }
 internal PluginRepository(GraphViewEditorWindow window)
 {
     m_PluginHandlers = new List <IPluginHandler>();
     m_Window         = window;
 }