Godot Version
4.6.3
Question
Hi, i did update from 4.4 to 4.6.3. Now my plugin to edit and save resources not working anymore. When i edit and save a .tres i can see the changes in the inspector. When going to the file system and open the .tres with notepad, there are no changes. ResourceSaver.save gives me no errors. For sure, when running the game the loaded .tres is also without changes. Any idea?
func on_save_button_pressed():
var npc_prop = npc_dropdown.get_item_text(npc_dropdown.selected)
var error = ResourceSaver.save(current_npc_prop, "res://resources/npc_properties/" + npc_prop + ".tres")
if error != OK:
printerr("Failure!")
else:
print("NPC property: " + str(npc_prop) + ".tres saved!!!")
load_npc_properties()
already tried (with no luck):
current_npc_prop.take_over_path("res://resources/npc_properties/" + npc_prop + ".tres")
current_npc_prop = current_npc_prop.duplicate(true)