Search Issue Tracker
By Design
Votes
27
Found in
2021.3.28f1
2022.3.4f1
2023.1.3f1
2023.2.0a22
Issue ID
UUM-42962
Regression
No
Prefabs with the AudioSources component don’t change the output of their AudioMixer group when instantiated using Addressables and manipulated in the Player
How to reproduce:
1. Open the "IN_46334" project
2. Press File → Build And Run
3. In the Player open the "Settings" menu
4. Mute "SOUND VOLUME" by dragging the dragbar to the left side
5. Press the "BACK" → "PLAY" buttons
6. Play the game until the ball hits bricks on the top of the Player
Expected result: no sound when the brick breaks
Actual result: sound of brick braking can be heard
Reproducible with: 2021.3.28f1, 2022.3.4f1, 2023.1.3f1, 2023.2.0a22
Reproducible on: Windows 10 Pro
Notes:
- Reproducible on Windows Standalone, WebGL, Android and iOS Platforms
- Not reproducible in the Editor
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- EditorGUILayout.PropertyField foldout icon inside Vertical Layout Group has an incorrect indent when used with OnInspectorGUI()
- [Android] [iOS] "NullReferenceException: Object reference not set to an instance of an object" throws when entering the Play Mode/opening the application
- The Player freezes on load when building Web platform
- Animator "Conditions" tab breaks when the only Parameter is deleted and another one is created
- "Shader error in 'Universal Render Pipeline/Lit': maximum ps_5_0 sampler register index (16) exceeded" error thrown after a build is completed when the "LOD Cross Fade" parameter is enabled
Resolution Note:
Addressables referencing an asset which is not addressable will get a copy of this asset in the build.
See documentation here:
https://docs.unity3d.com/Manual/AssetBundles-Troubleshooting.html
So in this project, the settings menu is setting the volume of the music and sound groups on the mixer referenced by the scene. This works for the music group because the audio source playing the music is also in the scene. But the brick audio sources (which are addressable prefabs) will be playing through a copy of the mixer which is different than the mixer reference the settings menu and music audio source have.
See these forum threads for more info and how to work with mixers in addressables:
https://forum.unity.com/threads/audio-mixer-in-addressable-assets.1010263/
https://forum.unity.com/threads/multiple-audiomixer-instanced-from-addressables.836644/
https://forum.unity.com/threads/scriptableobject-asset-and-addressables.652525/#post-4432489