public static class LayoutPresetsThe arrangements doc 11 names, as shapes rather than as panel lists.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
⚠ These take panel ids rather than knowing any. "Default / Scene / Shading / Animation / Debug" are the five presets the editor ships, but which panels are in them is the application's business — a plugin adds a panel and a game team ships a preset with it in. What is reusable is the arrangement: a browser on the left, a viewport in the middle, an inspector on the right, a console along the bottom.
The ratios are the ones that survive contact with a 1280-wide window, which is the smallest anybody edits on: a quarter to the left column is enough for a hierarchy and not enough to matter, and a fifth to the bottom is two dozen lines of log.
Methods (3)
public static DockLayout Single(string panel)An arrangement with one panel filling the window.
public static DockLayout Standard(IReadOnlyList<string> left, IReadOnlyList<string> centre, IReadOnlyList<string> right, IReadOnlyList<string>? bottom = null)A browser, a centre, an inspector, and a console under the middle.
public static DockLayout Split(IReadOnlyList<string> first, IReadOnlyList<string> second, float ratio = 0.5)Two panels side by side, which is what a graph editor and its preview want.
Used by (6)
- ChromeFixtureVixen.Editor.Ui.Tests
- DropIntoSceneTestsVixen.Editor.App.Tests
- EditorApplicationVixen.Editor.App
- EditorShellTestsVixen.Editor.Ui.Tests
- ModeTestsVixen.Editor.Ui.Tests
- WorkspaceTestsVixen.Editor.Ui.Tests