20180510-2

Exporting Sounds to Unity

GameSynth makes it incredibly easy to generate many variations of a sound effect and to add them to your Unity project, automatically importing the wave files, creating the corresponding metafiles, setting the audio parameters according to your specifications, and even writing a script so that the sound variations can be played in different ways (randomly, sequentially etc.).
 
Do you want to add 20 sword sounds, 150 impacts or 1000 whooshes to your Unity project?  Once you have edited your procedural audio patch in GameSynth and assigned some random ranges (check this previous post to see how easy it is), click on the “Export” button in the command panel. At the top of the window that appears, in the “Target” section, select Unity as the middleware, and specify the resources folder of the destination project.

0001

In the “Sample files” section, you can then enter how many sounds you want to generate from your patch, the amount of variation, the number channels they should have as well as how the files should be named. In the example depicted above, we are asking GameSynth to generate 20 sounds with a variation of 30%. They will be mono and since the base name is set to “Impact” and the starting index to 0, they will be named “Impact_0.wav” to “Impact_29.wav”.
 
The next section allows you to specify the resource settings, such as the loading type, the compression format, preloading, normalization and more. These will be saved in the .meta files that GameSynth will generate automatically and add to the resources folder of your Unity project, along with the wave files.
 
Check the following video to see how simple and fast it is to create new sounds and add them to your Unity project.

As you can see in the video above, GameSynth can also generate a script – in C# or JavaScript – that will implement the playback of the sounds. This script can be used as a starting point and customized based on the actual requirements of your game. However, it already allows for some interesting behaviours. For example, when you generate several sounds, it will be possible to specify how they will be selected during playback. Three modes are available: sequential, shuffle (i.e. random with no repetitions) and totally random. In addition, the playback volume and pitch can also be randomized, as shown below.

0002

The audio export to Unity is quite a unique feature offered by GameSynth, one that will make your audio implementation work much smoother!

GameSynth