We are using a shared network drive to contain the .wav assets of some of our game projects, instead of adding those wavs into our PerForce depot (file size policy). Due to several iterations, there is now a large number of #unused metadata xml files in the project’s Asset Bin.
I’d now need to Package the entire project including the audio assets, but it turns out the packaging also packs all the #unused assets, which in turn makes the package size exceed 4 GB, which apparently causes the package operation fail with an error even if there is disk space available.
I would like to delete the xml files referring to #unused wavs, but I want to keep the wavs (sometimes we need to go back on some iterations), to make the project package smaller.
Could you provide a script that can be used to delete the metadata xml files of #unused audio assets without deleting the .wav files on disc? Essentially, to “un-import” these files.
This would likely also make the project open a lot faster since there are literally thousands of #unused assets in the project by now.