Search Issue Tracker

By Design

Votes

0

Found in

2021.3.38f1

2022.3.30f1

6000.0.4f1

Issue ID

UUM-72579

Regression

No

Audio Source stops playing when moved to a scene with LocalPhysicsMode.Physics2D Parameter

--

-

Reproduction steps:
1. Open the “ReproProject“ project
2. Enter Play Mode
3. Click the “Play Sound“ button in the Game View
4. Click the “Move to different scene“ button in the Game View
5. Observe the sound

Expected result: The sound is not cut off and continues playing
Actual result: The sound is cut off and does not continue playing

Reproducible with: 2021.3.38f1, 2022.3.30f1, 6000.0.4f1

Reproducible on: Windows 11 Pro (22H2)
Not reproducible on: No other environment tested

Note: Does not reproduce when the Scene is created without the “LocalPhysicsMode.Physics2D” Parameter

  1. Resolution Note:

    Currently moving a GameObject to a new physics scene requires that the GameObject goes through an activation cycle (Disable+Enable). In this case going from the default physics scene to a local phsyics scene, created when specifying the phsyics mode in CreateScene.

    This is currently very heavy handed, as many components (e.g AudioSource) do not need to do anything special when going into a new physics scene. It is currently a known limitation that has plans to be addressed in future versions of Unity.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.