Godot Engine – Multi-platform 2D and 3D game engine
Remove semicolon from EditorContextMenuPlugin class reference
Mahan Khalili61de64aa01a2
diff --git a/doc/classes/EditorContextMenuPlugin.xml b/doc/classes/EditorContextMenuPlugin.xmlindex 58b517dd124..62712fa7930 100644--- a/doc/classes/EditorContextMenuPlugin.xml+++ b/doc/classes/EditorContextMenuPlugin.xml@@ -102,7 +102,7 @@Context menu of Script editor's code editor. [method _popup_menu] will be called with the path to the [CodeEdit] node. You can fetch it using this code:[codeblock]func _popup_menu(paths):- var code_edit = Engine.get_main_loop().root.get_node(paths[0]);+ var code_edit = Engine.get_main_loop().root.get_node(paths[0])[/codeblock]The option callback will receive reference to that node. You can use [CodeEdit] methods to perform symbol lookups etc.</constant>@@ -113,7 +113,7 @@Context menu of 2D editor's basic right-click menu. [method _popup_menu] will be called with paths to all [CanvasItem] nodes under the cursor. You can fetch them using this code:[codeblock]func _popup_menu(paths):- var canvas_item = Engine.get_main_loop().root.get_node(paths[0]); # Replace 0 with the desired index.+ var canvas_item = Engine.get_main_loop().root.get_node(paths[0]) # Replace 0 with the desired index.[/codeblock]The paths array is empty if there weren't any nodes under cursor. The option callback will receive a typed array of [CanvasItem] nodes.</constant>