API ReferenceEditor
DockManagerclass
Constructors1
Showing 1 constructors
public DockManager(Editor.Widget parent = null)
| Parameter | Type | Description |
|---|---|---|
| parent = null | Widget | — |
No results match this filter.
Methods11
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.
| Parameter | Type | Description |
|---|---|---|
| sibling | Widget | — |
| window | Widget | — |
| dockArea = 5 | DockArea | — |
| properties = 0 | DockProperty | — |
| split = 0.5 | float | — |
Returns:
void—public void Clear()
Clear the known widgets, reset manager to an empty state.
Returns:
void—public T Create()
Creates a widget by type
Returns:
T—public Editor.Widget GetDockWidget(string name)
Get an active, created dock
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
public void RegisterDockType(string name, string icon, System.Func`1<Editor.Widget> create, bool deleteOnClose = True)
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
| icon | string | — |
| create | Func<Widget> | — |
| deleteOnClose = True | bool | — |
Returns:
void—public void SetDockState(string name, bool visible)
Set dock as visible, or hidden, by name.
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
| visible | bool | — |
Returns:
void—public void UnregisterDockType(string name)
Unregister a dock type.
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
Returns:
void—No results match this filter.
Properties3
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.
Returns:
Action—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.
Returns:
string—No results match this filter.