Click or drag to resize

PopupMenuAddShortcut Method

Adds a ShortCut.

An id can optionally be provided. If no id is provided, one will be created from the index.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void AddShortcut(
	ShortCut shortcut,
	int id = -1,
	bool global = false
)

Parameters

shortcut
Type: GodotShortCut

[Missing <param name="shortcut"/> documentation for "M:Godot.PopupMenu.AddShortcut(Godot.ShortCut,System.Int32,System.Boolean)"]

id (Optional)
Type: SystemInt32

[Missing <param name="id"/> documentation for "M:Godot.PopupMenu.AddShortcut(Godot.ShortCut,System.Int32,System.Boolean)"]

global (Optional)
Type: SystemBoolean

[Missing <param name="global"/> documentation for "M:Godot.PopupMenu.AddShortcut(Godot.ShortCut,System.Int32,System.Boolean)"]

See Also