|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void HandleEditorViewChanged(GeometryChangedEvent evt) |
|
|
|
{ |
|
|
|
m_BlackboardProvider.blackboard.layout = m_FloatingWindowsLayout.blackboardLayout.GetLayout(m_GraphView.layout); |
|
|
|
} |
|
|
|
|
|
|
|
void StoreBlackboardLayoutOnGeometryChanged(GeometryChangedEvent evt) |
|
|
|
{ |
|
|
|
UpdateSerializedWindowLayout(); |
|
|
|
|
|
|
|
|
|
|
// After the layout is restored from the previous session, start tracking layout changes in the blackboard.
|
|
|
|
m_BlackboardProvider.blackboard.RegisterCallback<GeometryChangedEvent>(StoreBlackboardLayoutOnGeometryChanged); |
|
|
|
|
|
|
|
// After the layout is restored, track changes in layout and make the blackboard have the same behavior as the preview w.r.t. docking.
|
|
|
|
RegisterCallback<GeometryChangedEvent>(HandleEditorViewChanged); |
|
|
|
} |
|
|
|
|
|
|
|
void UpdateSerializedWindowLayout() |
|
|
|