Copyright © 2026 Unity Technologies
Fixed issue where creating an audio source with the editor window for the AudioRandomContainer asset open, but hidden could throw an error.
Fixed issue where creating an audio source while the editor window for the AudioRandomContainer asset was open could throw an error.
The console throws an error when creating or selecting a game object with an audio source after domain reload or entering play mode.
Regression details
Regressed in [Internal link], which fixes a similar issue where selecting a game object with an audio source threw an error, but without the step of triggering a domain reload or entering play mode.
Repro
Expected: No error is thrown in the console
Actual: An ArgumentNullReference error is thrown in the console
Note
Selecting and deselecting the game object will also produce the error after going through the repro steps. It will also occur after a domain reload, for example if creating, deleting, or editing a c# script in the project. Furthermore, opening the ARC window again will stop further attempts at triggering the error until you trigger a domain reload again.
Stack trace
ArgumentNullException: Value cannot be null. Parameter name: element UnityEditor.UIElements.Bindings.DefaultSerializedObjectBindingImplementation.UnbindTree (UnityEngine.UIElements.VisualElement element) (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElementsEditor/Bindings/BindingExtensions.cs:871) UnityEditor.UIElements.Bindings.DefaultSerializedObjectBindingImplementation.Unbind (UnityEngine.UIElements.VisualElement element) (at /Users/kristinnbragi/gitrepo/23.2/Modules/UIElementsEditor/Bindings/BindingExtensions.cs:864) UnityEditor.UIElements.BindingExtensions.Unbind (UnityEngine.UIElements.VisualElement element) (at /Users/kristinnbragi/gitrepo/23.2/Editor/Mono/UIElements/Bindings/BindingsInterface.cs:67) UnityEditor.AudioContainerWindowState.UpdateTarget () (at /Users/kristinnbragi/gitrepo/23.2/Editor/Mono/Audio/AudioContainerWindowState.cs:155) UnityEditor.AudioContainerWindowState.OnSelectionChanged () (at /Users/kristinnbragi/gitrepo/23.2/Editor/Mono/Audio/AudioContainerWindowState.cs:298) UnityEditor.Selection.Internal_CallSelectionChanged () (at /Users/kristinnbragi/gitrepo/23.2/Editor/Mono/Selection.cs:38)
Issues you vote on will appear here