Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 FPS_Squad · Sep 03, 2013 at 11:05 AM · buttonsoundlisteners

Background music and button sound at the same time PROBLEM

Hello i have a intro with background music at the start of my game and when they come to the menu the background music still plays but i also have button sound on my menu so if someone clicks a button it should come a sound but it doesent, and i have 2 audiolisteners so thats the problem i need help for, and if i disable the audiolisteners that the background music is in the button sound work but not the background music :S sorry for my bad english and i hope someone understand and can help me :)

Comment
Add comment · Show 3
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 meat5000 ♦ · Sep 03, 2013 at 11:06 AM 0
Share

You may need to change the priorities of the sound. If they are all set to default they will fight between themselves.

avatar image oferei · Sep 03, 2013 at 12:42 PM 0
Share

I'm a little confused. You should ALWAYS have only one audio listener. (Did you mean audio source?)

avatar image FPS_Squad · Sep 03, 2013 at 12:54 PM 0
Share

No i mean audio listener i have 1 listener in the gameObject where my background music are, and 1 listener in the gameObject where the button sound are, and the reason why i dont add the Background music to the button sound gameObject are that i have 1 scene with my starting intro and when its finish it goes to the main menu and i have coded so the gameObject doesent destroy on level loading so then i end up with 2 listeners :p

1 Reply

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

Answer by oferei · Sep 03, 2013 at 01:11 PM

I think your problem is with multiple audio listeners. You should only have one.

Other suggestions:

  1. Place the audio listener on the camera in the 1st scene and mark the camera as do-not-destroy

  2. Keep the audio sources close to the camera to make sure they're audible. You can attach them to the camera if the camera is mobile

Comment
Add comment · Show 2 · 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 FPS_Squad · Sep 03, 2013 at 03:53 PM 0
Share

Problem Solved! Thank you very much!! :)

avatar image fafase · Sep 03, 2013 at 03:54 PM 0
Share

Was this answer your solution?

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

18 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

How To play sound with a keypress 2 Answers

fix sonic like script? 1 Answer

Help In Making a SphereCast for 3D Tire! Working RayCast Script included! 0 Answers

listeners not working on dont destroy on load object 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