For Godot 4.4+
Tool for erasing or replacing UIDs from scenes, scripts, imports, and Godot's cache.
Because f*** these UIDs.
The errors are obnoxious, and the caching is awful.
The editor doesn't even support fixing many of the warnings and errors it complains about.
As of 4.5.1, the built-in tools don't rebuild the UID cache for .gd files, either.
Supports the following extensions:
gdtrestscnwavmp3oggsvgpnggifgltfglbdaeobjfbx
Any format that generates a .import file should be supported, but may be missing from the list. The user is encouraged to try adding it to the UID_IN_IMPORT_FILE_EXTENSIONS constant in context_menu_plugin.gd.
Note
Not all of these extensions have been tested, but most generate .import files which is what is actually getting content replaced.
Right-click on files in the File System Dock, and select Replace UIDs. Then restart the editor.
Important
The script deletes .godot/editor/filesystem* in order to force Godot to rebuild its cache of UIDs.
Sometimes though, I've had to nuke the project's entire .godot/ folder.
Issue has been opened: godotengine/godot#115011
Warning
Make sure the project is backed-up before using this feature. Users are enouraged to use version control (ie. git).