-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ResourceName not saved #82333
Comments
I can't find any reference to The name can be set by calling I'm guessing we'd either need to add a set/get function for resource_name, or change the Inspector behavior to reference the established name properties. |
I don't think that there is anything missing as the creator of the issue said that "This is rather unreliably to reproduce, but I eventually got the attached minimal project where it happens reliably." Implying that it does work in other projects. |
Not all resource formats support storing the resource name. For example, if you enter a name in the following field, save the resource, and restart the editor, the name will be lost because Resource ( [gd_resource type="Resource" format=3 uid="uid://c4k36vqy48njh"]
[resource]
resource_name = "test" Scene ( [gd_scene load_steps=2 format=3 uid="uid://wg043njbrkf3"]
[ext_resource type="Script" path="res://test.gd" id="3_1geoe"]
[node name="Node" type="Node"]
script = ExtResource("3_1geoe") We could add an optional [gd_scene load_steps=2 format=3 uid="uid://wg043njbrkf3" name="test"] |
Ok, so it's impossible to fix for all resources (as it'll never work for script resources?). Perhaps it would be better to disable the field if it's not going to work? |
To do this properly, a |
Closes godotengine#82333. Co-authored-by: Yuri Sizov <11782833+YuriSizov@users.noreply.github.com>
Closes godotengine#82333. Co-authored-by: Yuri Sizov <11782833+YuriSizov@users.noreply.github.com>
Godot version
v4.1.1.stable.mono.official [bd6af8e]
System information
Godot v4.1.1.stable.mono - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1070 (NVIDIA; 30.0.14.9613) - Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz (6 Threads)
Issue description
Setting the resource name of a packed scene does nothing. It displays in the editor, but checking the resource_name field just gives "" and if you restart the editor your setting is gone.
This is rather unreliably to reproduce, but I eventually got the attached minimal project where it happens reliably.
This is probably the cause of #56177 and #41619, but it's hard to be sure.
Steps to reproduce
asdf
field of the attached script.Expected: Console Prints "resource_name is some_value"
Actual: Conole Prints "resource_name is "
Expected: Resource name should be some_value
Actual: Resource name is empty
NB: Saving the scene or saving the resource seem to make no difference.
Minimal reproduction project
ResourceNameIssue.zip
The text was updated successfully, but these errors were encountered: