Click or drag to resize

EditorPluginAddControlToContainer Method

Adds a custom control to a container (see EditorPluginCustomControlContainer). There are many locations where custom controls can be added in the editor UI.

Please remember that you have to manage the visibility of your custom controls yourself (and likely hide it after adding it).

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

Namespace:  Godot
Assembly:  GodotSharpEditor (in GodotSharpEditor.dll) Version: 1.0.0
Syntax
C#
public void AddControlToContainer(
	EditorPluginCustomControlContainer container,
	Control control
)

Parameters

container
Type: GodotEditorPluginCustomControlContainer

[Missing <param name="container"/> documentation for "M:Godot.EditorPlugin.AddControlToContainer(Godot.EditorPlugin.CustomControlContainer,Godot.Control)"]

control
Type: GodotControl

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

See Also