public sealed class SceneViewStateWhat the Scene panel is looking at, which must outlive the panel: how it is split, and each pane's camera and saved views.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The workspace's per-view model (doc 50 § D2, #1303). A Scene panel is built afresh every time it is opened, and its SceneViewports with it, so anything a pane keeps on itself goes with the old one. The panel factory reads this on build and the panes write through it — it is IWorkspace.ViewState<SceneViewState>("scene") in the editor.
⚠ The nine bookmarks used to be the pane's own array, so closing the Scene panel threw every saved view away while the camera beside them — parked on the application — came back.
Fields and properties (3)
public const int MaxPanesHow many panes the widest arrangement has.
public ViewportArrangement ArrangementHow the panel is split.
public IReadOnlyList<PaneState> PanesEach pane's state, in reading order, for the widest arrangement.
Methods (1)
public void ForgetCameras()Forgets where every pane's camera was, keeping the saved views.
Used by (3)
- EditorApplicationVixen.Editor.App
- ScenePanesVixen.Editor.App
- ViewportTestsVixen.Editor.App.Tests