Copyright © 2026 Unity Technologies
Verified with: 2023.2.0a6.452.4021 Revision: trunk 5de4d4fd9e52 Built: Wed, 08 Mar 2023 01:22:58 GMT
Verified with: 2023.1.0b9.3067.2625 Revision: 2023.1/staging 824d2f8c920d Built: Wed, 15 Mar 2023 02:38:28 GM
Steps to reproduce:
Expected result: Preset should be removed. Window should be closed. No errors in the console.
Actual result: Console displays error "ObjectDisposedException: SerializedProperty m_DefaultPresets.Array.data[0].second.Array.data[0].m_Preset has disappeared!". Screenshot and video added in the "Attachments" section.
Reproducible with: 2023.1.0.a17, 2023.1.0b3
Not reproducible with:
2021.3.18f1 (this one has more older UI)
ObjectDisposedException: SerializedProperty m_DefaultPresets.Array.data[0].second.Array.data[0].m_Preset has disappeared!
UnityEditor.SerializedProperty.set_objectReferenceValue (UnityEngine.Object value) (at /Users/bokken/build/output/unity/unity/Editor/Mono/SerializedProperty.bindings.cs:1244)
UnityEditor.Presets.PresetSelector.ApplyValues (UnityEditor.Presets.PresetContext& presetContext, UnityEditor.Presets.Preset selection) (at /Users/bokken/build/output/unity/unity/Modules/PresetsUIEditor/PresetSelector.cs:327)
UnityEditor.Presets.PresetSelector.OnPresetSelected (UnityEditor.Presets.PresetContext& presetContext, UnityEditor.Presets.Preset selection, System.Boolean canceled) (at /Users/bokken/build/output/unity/unity/Modules/PresetsUIEditor/PresetSelector.cs:292)
UnityEditor.Presets.PresetSelector+<>c_DisplayClass31_0.<ShowSelector>b_1 (UnityEditor.Search.SearchItem item, System.Boolean canceled) (at /Users/bokken/build/output/unity/unity/Modules/PresetsUIEditor/PresetSelector.cs:239)
UnityEditor.Search.SearchWindow.OnDisable () (at /Users/bokken/build/output/unity/unity/Modules/QuickSearch/Editor/UITK/SearchWindow.cs:539)
UnityEditor.Search.SearchPickerWindow.OnDisable () (at /Users/bokken/build/output/unity/unity/Modules/QuickSearch/Editor/UI/SearchPickerWindow.cs:29)
UnityEditor.ContainerWindow:InternalCloseWindow() (at /Users/bokken/build/output/unity/unity/Editor/Mono/ContainerWindow.cs:350)
Issues you vote on will appear here