1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Add a script method to get its class icon

Co-authored-by: Danil Alexeev <danil@alexeev.xyz>
This commit is contained in:
Yuri Sizov
2023-08-24 12:49:20 +02:00
parent 6758a7f8c0
commit 2c77f07aaa
13 changed files with 52 additions and 12 deletions

View File

@@ -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]