Unity Issue Tracker - AudioSource.isPlaying remains true when setting the GameObject to SetActive(false) after AudioSource.Play()
Fixed
UUM-75910
AudioSource.isPlaying remains true when setting the GameObject to SetActive(false) after AudioSource.Play()
Unity: Audio Authoring
Fixed
6.0.X
6000.0.0b13 onwards
Won't Fix
6.1.X
Fixed before version branch off
Fixed an issue where an AudioRandomContainer's AudioSource.isPlaying would remain true when deactivating and activating the game object.
Reproduction steps:
1. Open the attached “audio_source” project
2. Open the “Assets/Audio” scene
3. Enter the Play mode
4. Observe the Console logs
Expected Result: The OnEnable logs are always false and the audio plays twice
Actual Result: The OnEnable logs are true after the audio finishes playing and the audio plays only once
Reproducible with: 6000.0.0b13, 6000.0.11f1
Not reproducible with: 2021.3.40f1, 2022.3.38f1, 6000.0.0b12
Reproducible on: Windows 11 Pro
Not reproducible on: No other environments tested
Prioritise and Follow this issue
Have a workaround or additional info about this issue?