Click or drag to resize

EditorPluginAddControlToDock Method

Adds the control to a specific dock slot (see EditorPluginDockSlot for options).

If the dock is repositioned and as long as the plugin is active, the editor will save the dock position on further sessions.

When your plugin is deactivated, make sure to remove your custom control with RemoveControlFromDocks(Control) and free it with QueueFree.

Namespace:  Godot
Assembly:  GodotSharpEditor (in GodotSharpEditor.dll) Version: 1.0.0
Syntax
C#
public void AddControlToDock(
	EditorPluginDockSlot slot,
	Control control
)

Parameters

slot
Type: GodotEditorPluginDockSlot

[Missing <param name="slot"/> documentation for "M:Godot.EditorPlugin.AddControlToDock(Godot.EditorPlugin.DockSlot,Godot.Control)"]

control
Type: GodotControl

[Missing <param name="control"/> documentation for "M:Godot.EditorPlugin.AddControlToDock(Godot.EditorPlugin.DockSlot,Godot.Control)"]

See Also