浏览代码

Merge pull request #66232 from Evanaellio/fix-tool-annotation

Fix code examples for @tool annotation
Rémi Verschelde 3 年之前
父节点
当前提交
6e773f7124

+ 1 - 1
doc/classes/EditorImportPlugin.xml

@@ -9,7 +9,7 @@
 		Below is an example EditorImportPlugin that imports a [Mesh] from a file with the extension ".special" or ".spec":
 		[codeblocks]
 		[gdscript]
-		tool
+		@tool
 		extends EditorImportPlugin
 
 		func _get_importer_name():

+ 1 - 1
doc/classes/EditorScenePostImport.xml

@@ -8,7 +8,7 @@
 		The [method _post_import] callback receives the imported scene's root node and returns the modified version of the scene. Usage example:
 		[codeblocks]
 		[gdscript]
-		tool # Needed so it runs in editor.
+		@tool # Needed so it runs in editor.
 		extends EditorScenePostImport
 		# This sample changes all node names.
 		# Called right after the scene is imported and gets the root node.

+ 1 - 1
doc/classes/EditorScript.xml

@@ -9,7 +9,7 @@
 		[b]Example script:[/b]
 		[codeblocks]
 		[gdscript]
-		tool
+		@tool
 		extends EditorScript
 
 		func _run():

+ 1 - 1
doc/classes/EditorTranslationParserPlugin.xml

@@ -11,7 +11,7 @@
 		Below shows an example of a custom parser that extracts strings from a CSV file to write into a POT.
 		[codeblocks]
 		[gdscript]
-		tool
+		@tool
 		extends EditorTranslationParserPlugin
 
 		func _parse_file(path, msgids, msgids_context_plural):