Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Dismiss Notice

Sound not working.

Discussion in 'AR/VR (XR) Discussion' started by flipwon, Jun 11, 2020.

  1. flipwon

    flipwon

    Joined:
    Dec 29, 2016
    Posts:
    140
    Not sure if this is a VR issue or not, but I can't seem to get a sound clip to play in my project.

    Some things I've looked at

    1. The clip works in the preview.
    2. The code is firing correctly, and debugs show the clip correctly.
    3. Setting to either 2d or 3d changes nothing.
    4. Audio settings for unity and project settings are on.

    Any ideas?

    I've even tried just adding an audio source to my camera to play a background music track, and nothing. I don't get it?
     
  2. arfish

    arfish

    Joined:
    Jan 28, 2017
    Posts:
    244
    Hi,

    Have you tried changing the Audio Source Spatial Blend slider to 1, for 3D sound, and the 3D Sound Setting Spread to for example 360 degrees?

    Assuming you are running the game in the Editor, do you get any errors in the log?
     
  3. flipwon

    flipwon

    Joined:
    Dec 29, 2016
    Posts:
    140
    Hey sorry, I forgot to update this thread.

    It was actually pretty dumb. I had the mute audio button on the game window pressed....

    Took me three hours and someone on another forum had to point it out...

    Yep....


    Anyways, thanks for trying to help, my bad for not updating!
     
    arfish likes this.
unityunity