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

Second camera take over main camera for audio spatial blend

Discussion in 'Audio & Video' started by Tharmine02, Jan 28, 2017.

  1. Tharmine02

    Tharmine02

    Joined:
    May 5, 2014
    Posts:
    25
    Hi all,

    for an AR game, I have 3d sound in my scene, all set up properly and working fine with my main camera (AR camera). .
    I have a second camera, with an animation, used to project a render to texture on some big tv.
    Unfortunately, when this second camera is active, it disrupt the 3d audio of my main camera : the 3d sound is played according to the second moving camera, not the position of the main camera.
    How can I fix that?

    Any help appreciated

    thanks

    Thomas
     
  2. Tharmine02

    Tharmine02

    Joined:
    May 5, 2014
    Posts:
    25
    Well it seems that I just need to disable the audio listener in the second camera to stop it from taking over the main camera. Simple enough :)