diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-31 10:53:11 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-31 10:53:11 +0100 |
commit | c6d066d20c4e4fa33c2ffea935babb3437f5b140 (patch) | |
tree | b22eb3c4469ed2618c7846c6543f743f19d673bb | |
parent | 628967e6baf9f9368f79b666cc59d5838b4afa23 (diff) | |
parent | 3c1c965b85a32f896b0b5d96ee02edacb80a78b8 (diff) |
Merge pull request #72413 from addmix/addmix/master
Added documentation note for `add_custom_type()`
-rw-r--r-- | doc/classes/EditorPlugin.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/classes/EditorPlugin.xml b/doc/classes/EditorPlugin.xml index 326c4f6456..c097c8f685 100644 --- a/doc/classes/EditorPlugin.xml +++ b/doc/classes/EditorPlugin.xml @@ -409,6 +409,7 @@ <description> Adds a custom type, which will appear in the list of nodes or resources. An icon can be optionally passed. 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. During run-time, this will be a simple object with a script so this function does not need to be called then. [b]Note:[/b] Custom types added this way are not true classes. They are just a helper to create a node with specific script. |