diff options
author | Yuri Sizov <yuris@humnom.net> | 2023-08-24 12:49:20 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-08-24 13:05:41 +0200 |
commit | 2c77f07aaa4c04c6f439a4636156ba234f6d2e13 (patch) | |
tree | 6ef8828a7fcc43832fec43e89d2d7dc4545af97a /modules/gdscript/doc_classes | |
parent | 6758a7f8c07d1f4c8ec4f052ded6d26402967ebe (diff) | |
download | redot-engine-2c77f07aaa4c04c6f439a4636156ba234f6d2e13.tar.gz |
Add a script method to get its class icon
Co-authored-by: Danil Alexeev <danil@alexeev.xyz>
Diffstat (limited to 'modules/gdscript/doc_classes')
-rw-r--r-- | modules/gdscript/doc_classes/@GDScript.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/doc_classes/@GDScript.xml b/modules/gdscript/doc_classes/@GDScript.xml index dd6b668c45..4f1a256ec9 100644 --- a/modules/gdscript/doc_classes/@GDScript.xml +++ b/modules/gdscript/doc_classes/@GDScript.xml @@ -595,7 +595,7 @@ <return type="void" /> <param index="0" name="icon_path" type="String" /> <description> - Add a custom icon to the current script. The script must be registered as a global class using the [code]class_name[/code] keyword for this to have a visible effect. The icon specified at [param icon_path] is displayed in the Scene dock for every node of that class, as well as in various editor dialogs. + Add a custom icon to the current script. The icon specified at [param icon_path] is displayed in the Scene dock for every node of that class, as well as in various editor dialogs. [codeblock] @icon("res://path/to/class/icon.svg") [/codeblock] |