Unity Issue Tracker - AudioSource.PlayDelayed() does not work with Audio Random Containers
Fixed
UUM-108008
AudioSource.PlayDelayed() does not work with Audio Random Containers
Unity: Audio Authoring
Fixed
6.3.X
6.2.X
6000.2.0a10 onwards
6.1.X
6000.1.2f1 onwards
6.0.X
6000.0.49f1 onwards
Audio: Fixed PlayDelayed/PlayScheduled not working correctly with AudioRandomContainer.
How to reproduce:
1. Open the “PlayDelayed“ project
2. Open the “SampleScene“
3. Enter Play Mode
4. Press K on the keyboard (an audio is played when the delay is at 0 seconds)
5. Move the slider handle to the right (to increase the delay)
6. Press K on the keyboard and observe the audio
Expected result: The audio clip is played after the specified delay time
Actual result: The audio clip is not played at all
Reproducible in: 6000.0.49f1, 6000.0.50f1, 6000.1.6f1, 6000.2.0b4
Not reproducible in: 6000.0.48f1
Could not test in: 2021.3.52f1, 2022.3.63f1 (Audio Random Container was not introduced yet)
Reproduced on: Windows 11 Pro (24H2)
Not reproduced on: No other environment tested
Notes:
Audio is played only if the delay is under 0.1 seconds
Only reproducible with Audio Random Container
Until version 2023.3.0a2, audio plays immediately regardless of delay
Prioritise and Follow this issue
Have a workaround or additional info about this issue?