Document a built-in use of Resource.resource_name
(cherry picked from commit 1a606b1a04
)
This commit is contained in:
parent
c31bb02a3e
commit
22bb9fcd82
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
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>
|
||||||
<member name="resource_name" type="String" setter="set_name" getter="get_name" default="""">
|
<member name="resource_name" type="String" setter="set_name" getter="get_name" default="""">
|
||||||
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>
|
||||||
<member name="resource_path" type="String" setter="set_path" getter="get_path" default="""">
|
<member name="resource_path" type="String" setter="set_path" getter="get_path" default="""">
|
||||||
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.
|
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.
|
||||||
|
|
Loading…
Reference in a new issue