Click or drag to resize

EditorPluginAddToolSubmenuItem Method

Adds a custom submenu under Project > Tools > name. submenu should be an object of class PopupMenu. This submenu should be cleaned up using remove_tool_menu_item(name).

Namespace:  Godot
Assembly:  GodotSharpEditor (in GodotSharpEditor.dll) Version: 1.0.0
Syntax
C#
public void AddToolSubmenuItem(
	string name,
	Object submenu
)

Parameters

name
Type: SystemString

[Missing <param name="name"/> documentation for "M:Godot.EditorPlugin.AddToolSubmenuItem(System.String,Godot.Object)"]

submenu
Type: GodotObject

[Missing <param name="submenu"/> documentation for "M:Godot.EditorPlugin.AddToolSubmenuItem(System.String,Godot.Object)"]

See Also