Just a quick one
I’ve recently had a project over 300 sounds that need to have a setting changed across all of them.
Initially I found that looking inside the .meta files (in Force Text mode) there was the following for the audio file:
fileFormatVersion: 2 guid: 3c7ec8b33f0ff4ad9a950a58e872ea62 AudioImporter: serializedVersion: 4 <strong>format: -1</strong> quality: .5 stream: 2 3D: 0 forceToMono: 0 useHardware: 0 loopable: 1 userData:
I found that by changing the “format: -1” to “format: 0” it set the audioclip to be imported as compressed instead of .Wav
fileFormatVersion: 2 guid: 3c7ec8b33f0ff4ad9a950a58e872ea62 AudioImporter: serializedVersion: 4 format: 0 quality: .5 stream: 2 3D: 0 forceToMono: 0 useHardware: 0 loopable: 1 userData:
Obviously that isn’t the most idea solution in the world, so I decided to look for scripts to automate changing the import settings for audio clips inside the editor. Here is what I found!
///////////////////////////////////////////////////////////////////////////////////////////////////////// // Batch audio import settings modifier. // // Modifies all selected audio clips in the project window and applies the requested modification on the // audio clips. Idea was to have the same choices for multiple files as you would have if you open the // import settings of a single audio clip. Put this into Assets/Editor and once compiled by Unity you // find the new functionality in Custom -> Sound. Enjoy! 🙂 // // April 2010. Based on Martin Schultz's texture import settings batch modifier. // See http://forum.unity3d.com/threads/77816-Changing-import-settings-for-multiple-audio-files // Modified by Sander H. and downloaded from CaptivatingSound.com - v1.1 April 5, 2013. // ////////////////////////////////////////////////////////////////////////////////////////////////////////
Make sure to shove it in the Assets/Editor folder (Make one if not) and you’ll find the “Custom” bar appear at the top of your editor. Definitely a lot easier!
Just select all the audio clips you want to change and use the new functions!