Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
11 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by areFranz · Jul 16, 2015 at 08:23 AM · c#unity5audiosourceaudiolistener

Unity 5 and Multiple AudioListeners

Hi All! I have a project in which there are a vehicle with an AudioListener attached to the child camera and an AudioListener attached to an empty object that has the role of playing the countdown before the vehicle can start running. So, if I use only the camera listener i ear the engine sound and other one shot sounds like the boost or the end lap clip, but the countdown doesn't play... If i delete the listener on the camera, i ear only the countdown. How can I fix the problem? (The vehicle is a prefab instantiated at teh awake of the track scene).

PS. This project was started with unity 4 and all worked fine...

PPS. The oneshot sounds are fired by c# script and the AudioSources are blank.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by areFranz · Jul 16, 2015 at 01:02 PM

I've found the problem: in Unity 5 the settings of the audio clips are only in the AudioSource tab. I had to set the priority to high and the sound source to 2D. All is ok now.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by LaneFox · Jul 16, 2015 at 11:06 AM

You can only have one Audio Listener. It's really that simple, develop around the idea of only having one Audio Listener.

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image areFranz · Jul 16, 2015 at 11:08 AM 0
Share

... I know that I can have only one AudioListener, my question is how to "connect" all the oneshot played clips to the camera's AudioListener. I've tried even $$anonymous$$ixer asset... but invane.

avatar image LaneFox · Jul 16, 2015 at 11:53 AM 0
Share

You do that by only having one Audio Listener.

avatar image areFranz · Jul 16, 2015 at 11:55 AM 0
Share

I hace one audio listener...on the camera but i can't ear the countdown..

avatar image LaneFox · Jul 16, 2015 at 11:57 AM 0
Share

Then something else is wrong. $$anonymous$$aybe post the code you're using or show some context about how the sounds are fired.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

Distribute terrain in zones 3 Answers

SetActive on a different gameObject's component? Audio Source 1 Answer

How to mute Backgroundmusic while other audiosources still plays 0 Answers

how to make my 2d object move in a path with the use of accelerometer? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges