I want to make a texture packer that runs as an editor plugin, and that automatically replaces all textures that are packed into the new texture with AtlasTextures referencing the new texture.
My first thought was to try to replace textures by stealing their UIDs and using them for AtlasTextures, but that doesn’t work. In the Godot Editor Filesystem, you can open a menu which shows the owners of the resource. Is there any way to get the list of a resource’s owners in a plugin, then replace the references to the resource with a different resource?
tl;dr: I want to replace all references to a resource with references to a different resource.