Click or drag to resize

EditorPluginAddToolMenuItem Method

Adds a custom menu item to Project > Tools as name that calls callback on an instance of handler with a parameter ud when user activates it.

Namespace:  Godot
Assembly:  GodotSharpEditor (in GodotSharpEditor.dll) Version: 1.0.0
Syntax
C#
public void AddToolMenuItem(
	string name,
	Object handler,
	string callback,
	Object ud = null
)

Parameters

name
Type: SystemString

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

handler
Type: GodotObject

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

callback
Type: SystemString

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

ud (Optional)
Type: SystemObject

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

See Also