Skip to content

Commit af529cb

Browse files
committed
Merge pull request godotengine#93777 from ashish0kumar/fix/doc/add_custom_type-icon
Fix "icon" parameter in EditorPlugin.add_custom_type is not optional but doc says it is
2 parents 2cb0c20 + e38530a commit af529cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/classes/EditorPlugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@
444444
<param index="2" name="script" type="Script" />
445445
<param index="3" name="icon" type="Texture2D" />
446446
<description>
447-
Adds a custom type, which will appear in the list of nodes or resources. An icon can be optionally passed.
447+
Adds a custom type, which will appear in the list of nodes or resources.
448448
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.
449449
[b]Note:[/b] The base type is the base engine class which this type's class hierarchy inherits, not any custom type parent classes.
450450
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.

0 commit comments

Comments
 (0)