Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Best Way to add room tones in complicated space?

Discussion in 'Audio & Video' started by tfodorsound, Jun 23, 2015.

  1. tfodorsound

    tfodorsound

    Joined:
    Jun 12, 2015
    Posts:
    12
    Hey guys

    I'm trying to add some room tone for different rooms but the geometry of the room is pretty complicated. I'm struggling to find an easy way to change snapshots with the different room regions using box colliders. For example, most of my rooms aren't squares so I have little pockets where it's nearly impossible to trigger the room ambience. Help!!
     
  2. tfodorsound

    tfodorsound

    Joined:
    Jun 12, 2015
    Posts:
    12
    after some research it looks like im going to have to use Mesh Colliders.. Would love some help on how to make those work with audio and in general.
     
  3. blizzy

    blizzy

    Joined:
    Apr 27, 2014
    Posts:
    775
    Wouldn't it be easier (and be less of a performance hog) if you just activated the ambient sound upon entering the room, and deactivate it upon exiting?
     
  4. Smoy

    Smoy

    Joined:
    Dec 8, 2014
    Posts:
    2
    For this kind of jobs, I'm building sort of a portal prefab consisting of two parallel triggers. When you reach the entry trigger, you launch you room tone, you disable the entry and enable the out trigger (which stops the room tone, or play another ambience, whatever). That's a fastidious but necessary process. Hope that helps ;)