API ReferenceEditor
public class Editor.DockManager : Editor.Widget
Constructors
Showing 1 constructors
public DockManager(Editor.Widget parent = null)
Parameters
parent: Default: null
No results match this filter.
Methods
Showing 11 methods
public void AddDock(Editor.Widget sibling, Editor.Widget window, Editor.DockArea dockArea = 5, Editor.DockManager.DockProperty properties = 0, float split = 0.5)
Add a window next (or on top of) to the specified window.
Parameters
dockArea: Default: 5properties: Default: 0split: Default: 0.5
public void Clear()
Clear the known widgets, reset manager to an empty state.
public T Create()
Creates a widget by type
public Editor.Widget GetDockWidget(string name)
Get an active, created dock
public void RegisterDockType(string name, string icon, System.Func`1<Editor.Widget> create, bool deleteOnClose = True)
Parameters
deleteOnClose: Default: True
public void SetDockState(string name, bool visible)
Set dock as visible, or hidden, by name.
public void UnregisterDockType(string name)
Unregister a dock type.
No results match this filter.
Properties
Showing 3 properties
public System.Collections.Generic.IEnumerable`1<Editor.DockManager.DockInfo> Editor.DockManager.DockTypes { get; set; }
A list of dock types that are registered.
public System.Action Editor.DockManager.OnLayoutLoaded { get; set; }
Called when the layout state is changed programatically. This is generally called when the default layout is loaded, or a saved layout is loaded.
public string Editor.DockManager.State { get; set; }
A JSON string representing the entire state of the dock manager, i.e. position of all the docks, etc.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Editor |
| Type | class |
| Assembly | Sandbox.Tools |
| Doc ID | T:Editor.DockManager |