Search Unity

  1. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  2. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  3. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Participate with students all over the world and build projects to teach people. Join now!
    Dismiss Notice
  5. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  7. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Audio Some audio not working when building to Windows

Discussion in 'Audio & Video' started by Razorlance, Jul 11, 2018.

  1. Razorlance

    Razorlance

    Joined:
    Aug 25, 2014
    Posts:
    15
    My game has several audio effects and 1 music track, these are connected to separate audio mixers which are in turn children of a master mixer. This lets me adjust the volume of effects and/or music and overall master volume via 3 UI sliders.

    This all works perfectly when in the editor however when i build it to the windows platform the music track and one of the audio effects don't play. The sliders still seem to work for the audio effects that do play, i.e. the master volume and effects volume.

    It seems like the audio files are somehow not being included in the build but I cannot see any assets in the data folder so have no idea how or where they are stored.

    I'm using Unity 2018.1 and Window 10, can anyone help?
     
  2. Razorlance

    Razorlance

    Joined:
    Aug 25, 2014
    Posts:
    15
    Well, I created a WebGL version of the game which worked perfectly, then went back and tried the Windows version again and, guess what... that worked perfectly too! I have no idea what went wrong but I'm glad it fixed itself!