|
|
|
|
|
|
var presenter = CreateInstance<GraphEditorPresenter>(); |
|
|
|
presenter.Initialize(inMemoryAsset, this, selected.name); |
|
|
|
m_GraphEditorView.presenter = presenter; |
|
|
|
m_GraphEditorView.RegisterCallback<PostLayoutEvent>(OnPostLayout); |
|
|
|
} |
|
|
|
m_GraphEditorView.presenter.graphPresenter.UpdateTimeDependentNodes(); |
|
|
|
} |
|
|
|
|
|
|
{ |
|
|
|
m_GraphEditorView = new GraphEditorView(); |
|
|
|
rootVisualContainer.Add(m_GraphEditorView); |
|
|
|
var presenter = CreateInstance<GraphEditorPresenter>(); |
|
|
|
presenter.Initialize(inMemoryAsset, this, selected != null ? selected.name : ""); |
|
|
|
m_GraphEditorView.presenter = presenter; |
|
|
|
} |
|
|
|
|
|
|
|
void OnDisable() |
|
|
|
|
|
|
inMemoryAsset.OnEnable(); |
|
|
|
inMemoryAsset.ValidateGraph(); |
|
|
|
|
|
|
|
var presenter = CreateInstance<GraphEditorPresenter>(); |
|
|
|
presenter.Initialize(inMemoryAsset, this, selected.name); |
|
|
|
m_GraphEditorView.presenter = presenter; |
|
|
|
m_GraphEditorView.RegisterCallback<PostLayoutEvent>(OnPostLayout); |
|
|
|
|
|
|
|
m_GraphEditorView.presenter = null; |
|
|
|
titleContent = new GUIContent(selected.name); |
|
|
|
|
|
|
|
Repaint(); |
|
|
|