Author Topic: UI camera has a audio listener  (Read 4759 times)

laurentl

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 188
    • View Profile
    • McDROID
UI camera has a audio listener
« on: May 21, 2013, 05:57:13 PM »
Is that audio listener something to remove if the scene already has one ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UI camera has a audio listener
« Reply #1 on: May 22, 2013, 10:00:34 AM »
Yeah, you should only have one. What I generally do is have a separate game object with an AudioListener that will automatically position itself at Camera.main.transform.position in LateUpdate. I also mark this game object as DontDestroyOnLoad, and have it travel from scene to scene.