Music Tracks - SuperCatGaming/Velocity-Redux-Mod-Creator GitHub Wiki

If you are following the recommended file structure for mods, music is located under [Sounds/Music]. It is recommended to create a new folder for each music track you add.

To create a music track, access the menu [Assets > Create > Mods > Music Track]. Make sure to name the created object. Then, in the inspector, you will notice a few options.

  • Id: the unique (to your mod) identifier for this music theme
  • Is Main Menu Theme: check if the track is for the main menu
  • Track Name: the display name of the track; can be translated
  • Audio Clip Intro: the clip that is played first, before the loop
  • Audio Clip Loop: the clip that is continuously looped
  • Loops: whether or not this track will loop

Notice that music tracks have two parts to them: an intro and a loop. The intro is played before the loop. For some tracks, you might just have a loop. Whatever the case may be for you, import the audio file(s) into Unity. Then add the imported audio files to the correct options ("Intro" or "Loop") by dragging and dropping.

[!Important] If you want the track to loop, check the "Loops" box (if the box is left unchecked, the "Loop" clip will never play, so be sure your file is in the "Intro" clip slot). Usually, main menu themes should loop.

[!Tip] It is recommended that your audio files are in the ".ogg" format, especially if it loops. ".mp3" files almost always have some silence at the beginning and end due to the format specification, which means they will not seamlessly loop.