Search Issue Tracker
By Design
Votes
0
Found in
6000.0.60f1
6000.2.8f1
6000.3.0b6
6000.4.0a3
Issue ID
UUM-122366
Regression
No
Audio preview stops in Editor when Unity loses focus and "Run in Background" is disabled
Reproduction steps:
1. Open the attached “IN-120835.zip” project
2. Go to Edit > Project Settings > Player > Resolution and Presentation
3. Make sure the “Run In Background” property is checked
4. From the Project Window, select the “test.mp3” asset
5. From the Inspector play its preview
6. Remove the focus from the Editor (switch to some other application)
7. Observe the audio preview has not stopped
8. Uncheck the “Run In Background” property
9. Repeat 4-6th steps
10. Observe the audio preview
Expected result: The audio preview is not affected by the "Run in Background" setting that is in the Player settings
Actual result: The audio preview is affected by the "Run in Background" setting and stops playing
Reproducible with: 2023.1.0b1, 6000.0.60f1, 6000.2.8f1, 6000.3.0b6, 6000.4.0a3
Reproducible on: Windows 11
Not reproducible on: no other environments tested
Note:
- The behavior that "Run in Background" setting also affects the Editor seems really unintuitive. A solution could be to add a different setting in the Project Settings, that would be specifically for audio preview settings in the Editor like “Play in Editor in Background / Play audio preview in Background”
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
- Non-multisampled texture binding errors are logged when running the DepthBlit URP scene with MSAA enabled on Vulkan
- The Editor does not recognize code errors in generic classes when using C# Source Generator to generate serialization code
- Long Sprite names are not truncated in the Inspector window name label and the preview labels when a Sprite with a long name is selected
- NullReferenceException is logged when undoing Deletion of a Visual Query Block of a Search Expression
- “Unsupported type MinMaxCurve” error and “Could not register property modification for animation binding…” warnings are thrown after moving playhead when Particle System Property is added to Animation window
Resolution Note:
it's true that this is not intuitive, but it is as designed in the current system. we hope to introduce a better design with this setting in the future when we have untangled audio routing in the editor, and will keep this issue in mind.
Thank you for reporting!