Author Topic: No sound playing after nGUI added to project  (Read 2404 times)

NotANinja

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
No sound playing after nGUI added to project
« on: August 02, 2013, 06:02:53 PM »
After transitioning over to the new version of nGUI for an older project I wanted to shake the mothballs out of, the sounds no longer play. When rendering through the nGUI camera, no sounds play. When using the previous rendering setup (Turning UI Root off and turning Main Camera on), it plays the sounds without problem. This is why I think the problem is an interaction with nGUI, and why I am posting on the nGUI forums.

The steps I took are:

* Back up to Git.
* Re-import nGUI.
* Test UI does not display properly.
* Completely remove nGUI, all assets and hierarchy (I didn't have much for a GUI yet).
* Save scene and exit.
* Reload project and scene.
* Add nGUI to the project and save scene.
* Close project and scene.
* Reload project and scene.
* Create a GUI using the UI Wizard.
* * Camera is Advanced 3D.
* Set the camera to also render Default.
* Adjust position, scale and Z values of the camera so that it renders the scene, and set it to Orthographic.
* Add a temporary "Score: " label, to test.
* Play the game.
* The game and nGUI display properly.
* * The sound does play very briefly when I stop the game.
* Check on Google. Nothing useful found before the results have nothing to do with nGUI.
* Check on Youtube. Same.

I'm a near-complete beginner with nGUI. However, this behavior doesn't seem standard. How do I fix this?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: No sound playing after nGUI added to project
« Reply #1 on: August 02, 2013, 08:30:49 PM »
There must be an active Audio Listener in the scene (usually on the main camera) in order to hear sounds.