Godot Version
4.3
Question
Hello!
I’m running into an issue where if I edit my game’s .pngs, they do not update in my game/editor. Here’s an example:
Here’s what I see in the editor for my Sprite2D’s texture.
I ran a python script that changed all the yellow and silver sprites in my game’s folder to purple. My .png sprite now looks like this:
I now go back to my sprite2d but that still looks like:
If I drag and drop my updated n.png to the Sprite2D’s texture box, it naturally updates. However my game has hundreds of sprites. What should I do?
I understand this has something to do with caching from reading the document, but I don’t get how to get the sprite2d to always match the latest image.
Your path’s don’t match, you edited n.png
but the resource is named “PartHull.t…”
Thanks for your response!
I don’t think I ever set that path directly. I just dragged and dropped n.png on the Sprite2D texture box. It seems like whenever I do that, the .png image no longer matters, it’s using a cached copy of it?
Not sure I understand what’s going on 
Sounds like it is using a embedded copy, which probably makes your .tscn
files on the order of megabytes larger. Dragging and dropping resources usually results in the correct path being loaded, I’m not sure why it may be embedding instead.
1 Like
Thanks for your reply! I thought so too, I always see tutorial videos drag and drop their pngs on sprite2Ds and it seems to work out for them. Quite puzzled how to actually solve this.
I have to edit a few hundred sprites, and I make edits quite often unfortunately.