Unity Issue Tracker - Crash on AudioSource::SetCustomRolloffCurve when entering Play Mode with AudioSource component
Fixed
UUM-29578
Crash on AudioSource::SetCustomRolloffCurve when entering Play Mode with AudioSource component
Unity: Audio Authoring
Fixed
2023.2.X
2023.1.X
2022.2.X
2021.3.X
Editor: Fixed a crash that occurs when you set the custom-rolloff-curve to null on an audio source.
How to reproduce:
1. Open the user attached “Unity Audio Curve Repro.zip“ project
2. Add the “CurveOofMonoTest.cs” script to a GameObject
3. Enter Play Mode
4. Observe crash
Reproducible with: 2021.3.20f1, 2022.2.10f1, 2023.1.0b7, 2023.2.0a5
Could not test with: 2020.3.46f1 (Compiler errors)