private void ConstructGraphView() { _graphView = new StoryGraphView(this) { name = "Narrative Graph", }; _graphView.StretchToParentSize(); rootVisualElement.Add(_graphView); }
private void ConstructGraphView() { _graphView = new StoryGraphView { name = _filePath != null?Path.GetFileName(_filePath) : "Unsaved New Narrative" }; _graphView.StretchToParentSize(); rootVisualElement.Add(_graphView); }