Unity 3.2.0f4, Windows 7 64.
In my game, I have all Audio events played directly to my Main Game Camera. So, theoretically, all sounds/music/effects will be played at full Volume (1.0f).
When I get my game to use WWW web streaming to load an Audio File (OGG Music), the volume is perfect, 100%.
But, when I make a Bundle containing this Audio Asset, and load it from the asset bundle, the audio volume seems to have been cut in half.
When I was in Unity 2.6 and did this similarly, there was no audio volume cut. Is this something new?
(I build my Asset Bundles from a special menu that loads all the files, then builds bundles from there.)
Answer by Sren Christiansen
May 25, 2011 at 01:43 PM
You probably checked the 3D option for the audio in your AssetBundle? and use 2D for the audio you load with WWW?. That would explain the difference in volume (as the 3D sound will be attenuated over distance from the listener, making it softer)
Something very similar. In the Editor, the sound was attached to a blank game object at the same location of the MainCamera, with the Mic. 2D sound would have fixed this (But I needed it to stay 3D as I used that same effect somewhere else that didn't need to be right next to the camera). So I added a code that moved the gameobject to stay right beside the camera. Apparently it was a bug in the Editor.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a user guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
Answers and Comments
2 People are following this question.
no extension method `LoadAssetAsync' of type `UnityEngine.AssetBundle
Load Assets - WWW vs File
Math formula to set volume levels nicely
Can lightprobes work with asset bundles or through WWW