summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-01-23 21:25:19 +0100
committerHugo Locurcio <hugo.locurcio@hugo.pro>2021-01-23 21:33:48 +0100
commit1a606b1a046a8d218fd4a4a90b495e8708f3e0c0 (patch)
tree25d6e57376c1a72371d3d8db6bd34b9651dac3c0 /doc/classes
parentd39f6386ce3a7916dbb94fef5ff65e7599e060f0 (diff)
Document a built-in use of `Resource.resource_name`
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/Resource.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/Resource.xml b/doc/classes/Resource.xml
index a9697c7fce..2548f8d911 100644
--- a/doc/classes/Resource.xml
+++ b/doc/classes/Resource.xml
@@ -79,7 +79,7 @@
If [code]true[/code], the resource will be made unique in each instance of its local scene. It can thus be modified in a scene instance without impacting other instances of that same scene.
</member>
<member name="resource_name" type="String" setter="set_name" getter="get_name" default="&quot;&quot;">
- The name of the resource. This is an optional identifier.
+ The name of the resource. This is an optional identifier. If [member resource_name] is not empty, its value will be displayed to represent the current resource in the editor inspector. For built-in scripts, the [member resource_name] will be displayed as the tab name in the script editor.
</member>
<member name="resource_path" type="String" setter="set_path" getter="get_path" default="&quot;&quot;">
The path to the resource. In case it has its own file, it will return its filepath. If it's tied to the scene, it will return the scene's path, followed by the resource's index.