Click or drag to resize

OSGlobalMenuAddItem Method

Add a new item with text "label" to global menu. Use "_dock" menu to add item to the macOS dock icon menu.

Note: This method is implemented on macOS.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static void GlobalMenuAddItem(
	string menu,
	string label,
	Object id,
	Object meta
)

Parameters

menu
Type: SystemString

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

label
Type: SystemString

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

id
Type: SystemObject

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

meta
Type: SystemObject

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

See Also