From e38530af1ea599cd912b121160efce8b2cd57358 Mon Sep 17 00:00:00 2001 From: Ashish Kumar Date: Sun, 30 Jun 2024 15:49:09 +0530 Subject: [PATCH] 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 <96648715+AThousandShips@users.noreply.github.com> --- doc/classes/EditorPlugin.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/classes/EditorPlugin.xml b/doc/classes/EditorPlugin.xml index 89b9e7d6c295..c3ea440aea9e 100644 --- a/doc/classes/EditorPlugin.xml +++ b/doc/classes/EditorPlugin.xml @@ -444,7 +444,7 @@ - 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. [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.