浏览代码

Fix "icon" parameter in EditorPlugin.add_custom_type is not optional, but docs says it is# This is a combination of 2 commits.

Fix "icon" parameter in EditorPlugin.add_custom_type is not optional, but docs says it is

Update doc/classes/EditorPlugin.xml

Co-authored-by: A Thousand Ships <[email protected]>
Ashish Kumar 1 年之前
父节点
当前提交
e38530af1e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      doc/classes/EditorPlugin.xml

+ 1 - 1
doc/classes/EditorPlugin.xml

@@ -444,7 +444,7 @@
 			<param index="2" name="script" type="Script" />
 			<param index="2" name="script" type="Script" />
 			<param index="3" name="icon" type="Texture2D" />
 			<param index="3" name="icon" type="Texture2D" />
 			<description>
 			<description>
-				Adds a custom type, which will appear in the list of nodes or resources. An icon can be optionally passed.
+				Adds a custom type, which will appear in the list of nodes or resources.
 				When a given node or resource is selected, the base type will be instantiated (e.g. "Node3D", "Control", "Resource"), then the script will be loaded and set to this object.
 				When a given node or resource is selected, the base type will be instantiated (e.g. "Node3D", "Control", "Resource"), then the script will be loaded and set to this object.
 				[b]Note:[/b] The base type is the base engine class which this type's class hierarchy inherits, not any custom type parent classes.
 				[b]Note:[/b] The base type is the base engine class which this type's class hierarchy inherits, not any custom type parent classes.
 				You can use the virtual method [method _handles] to check if your custom object is being edited by checking the script or using the [code]is[/code] keyword.
 				You can use the virtual method [method _handles] to check if your custom object is being edited by checking the script or using the [code]is[/code] keyword.