Help overwritting a resource that already exists when saving it

Save or overwrite a resource

Question

Hello, is there any way of overwriting/replacing a resource when calling ResourceSaver.save if the path is already used by another resource?
Cheers

That’s the default behaviour… Is it not working?

Hey, sorry for the late reply. No, it keeps the old data, not the saved one. Also I checked the Error returned by that call, and it’s 0, so looks like everything should have worked as expected. Must be worth mentioning that I’m using a tool script.

If you have an instanced Resource, that can have value overrides. Even if you change the base resource, the overrides take precedence. What are you doing exactly? Show your code, your node tree, your project. Don’t make people guess.