|
How do I force though script the loaded audio to be set as 2D sound? I'm trying try load in our music file to play in the background. When loading from WWW source I can't seem to find the option to set the audio as a 2D sound, it is intended to be an Omni sound but ends up being a 3D sound.
(comments are locked)
|
|
Hi, This will be an option in 3.2. For now use .panLevel = 0.0f on the audiosource playing the clip (this will make it play in 2D) -Sren
(comments are locked)
|
|
Jee.. This means I am doing something wrong. However the sound is constant nomather how far the camera (with listener) is from the source: var download = new WWW (path); yield download; var clip : AudioClip = download.oggVorbis; if (clip != null) { audio.clip = clip; audio.rolloffMode = AudioRolloffMode.Logarithmic; audio.spread=0.25; audio.minDistance=1; audio.minDistance=10; audio.ignoreListenerVolume=true; Any clue? Is there any way of forcing a sound to become 3d? panLevel, should be 0.0f (not 1f)
Jul 13 '11 at 12:58 PM
Sren Christiansen
Not an answer. If you have a question, Ask it, don't add an "Answer" to an old question.
Jul 13 '11 at 01:03 PM
Waz
(comments are locked)
|
