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 Yunnan · Jan 14, 2015 at 07:01 PM · uisound

[4.6] Sound won't play either on Unity Editor or in Play Mode

Hi, I am trying to play a sound in the Main Menu of my game, the sound already attached to the Audio Source in the Main Camera game object and have the Audio Listener, but when I enter Play Mode, the sound won't play. I got curious and when I play the sound on Unity Editor where the sound located in the assets folder, the sound won't play either. I have tried using the .wav and .mp3 extension, yet the sound itself plays on Windows Media Player, VLC Media Player etc, and I have tried re-sync all of the assets data and also re-install Unity, but the result gives nothing.

Any solution?

Thank you in advance!

Comment
Add comment · Show 7
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 Yunnan · Jan 14, 2015 at 07:00 PM 0
Share

No, I didn't use any code for this, I just want to test the sound to play when I hit play mode, but the sound did not play at all.

Here is the link of the screenshot:

Image Link

When you see on the Sound Asset folder, there are 2 same name of music "$$anonymous$$ain $$anonymous$$enu Theme", but different type of extension and I already re-sync it and play it on the $$anonymous$$ain Camera, but when I hit play mode, the sound won't play

avatar image RedHedZed · Jan 14, 2015 at 09:49 PM 0
Share

Do you have an audio listener in your scene? Is the sound within range of that audio listener?

Is the sound 3D? Try setting it to be 2D in the import settings.

avatar image Mondkin · Jan 14, 2015 at 10:07 PM 0
Share

Is your scene small enough to be uploaded somewhere to have a look ?

avatar image Yunnan · Jan 15, 2015 at 08:09 AM 0
Share

@RedHedZed: main camera already have audio listener by default, I have tried both 2d sound and 3d sound, neither of them work.

@$$anonymous$$ondkin: no, it is not like that. Because when I tried to upload the photo to here, the progress always 0%, no matter how long I waited. I thought it was my internet problem, but when I refresh or open a new page, it works. So not sure why. That's why I uploaded into dropbox.

avatar image RedHedZed · Jan 15, 2015 at 05:19 PM 0
Share

I know they're there by default but I thought I'd point it out in case you had removed it earlier for whatever reason by accident.

Show more comments

3 Replies

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

Answer by Yunnan · Jan 18, 2015 at 07:33 AM

I have solved the issue already, I re-format the computer and everything seems okay.

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 khos85 · Jan 14, 2015 at 10:40 PM

Is the audio source set to play at awake and looped?

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 Yunnan · Jan 15, 2015 at 08:11 AM 0
Share

Yes, they are. In Unity 4.5, I did the same thing and play the same sound, and it is works. $$anonymous$$aybe that is a bug on Unity 4.6? I am using 4.6 because the GUI much more flexible.

avatar image RedHedZed · Jan 15, 2015 at 05:19 PM 0
Share

I don't know about it being an issue with Unity... I've been working on my own project in Unity and just got through with doing the sound and never came across an issue like you're having...

avatar image khos85 · Jan 15, 2015 at 06:24 PM 0
Share

Have you clicked on the audio in the project view, it should play the audio file, can you hear anything when you do that? This should provide at least that the audio is imported ok.

avatar image Yunnan · Jan 16, 2015 at 09:37 AM 0
Share

@all: I just tried to open another project by using Unity 4.6, amd apply the sound, and the problem is the sound won't play in Unity 4.6, but it does in earlier version

avatar image
0

Answer by RedHedZed · Jan 15, 2015 at 05:21 PM

Audio sources have a range. Is your listener within range of the source?

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 Yunnan · Jan 16, 2015 at 09:38 AM 0
Share

@all: I just tried to open another project by using Unity 4.6, amd apply the sound, and the problem is the sound won't play in Unity 4.6, but it does in earlier version

avatar image khos85 · Jan 16, 2015 at 06:40 PM 0
Share

maybe give us a small sample project in zip format, we can then check if the sound works ok on our machines, or tell you what is wrong..

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

6 People are following this question.

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

Related Questions

Cutscene(Animation) problem 0 Answers

RectTransform.Rotate with custom speed 1 Answer

Catch pointer events by multiple gameObjects 6 Answers

door open close using unity 4.6.1 new UI system 2 Answers

New UI batching problem 1 Answer


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