How to reproduce:
- Create a new project
- Go to "File" ->"Build Profiles"
- Select any platform and create a build profile
- Go to Project ->Assets ->Settings ->BuildProfiles
- Select the newly created build profile
- Go to the "Inspector" tab
- Click a preset icon next to the build profile title in the "Inspector" tab
- Create a build profile preset
- Select the newly created preset in the "BuildProfiles" folder
- Select it and click "Play"
Actual result: The console displays an error. An attachment (video) is added below in the "Attachments" section.
Expected result: No errors in the Console.
Reproducible with: 2023.3.0b1, 2023.3.0b5
Not reproducible with: 2023.3.0a19.
Note - Error:
KeyNotFoundException: The given key '-4980' was not present in the dictionary.
System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) (at <107439755c2c4e4f961430e1c757b578>:0)
UnityEditor.Presets.PresetEditor.DestroyInternalEditor () (at /Users/bokken/build/output/unity/unity/Modules/PresetsUIEditor/PresetEditor.cs:383)
UnityEditor.Presets.PresetEditor.OnDisable () (at /Users/bokken/build/output/unity/unity/Modules/PresetsUIEditor/PresetEditor.cs:286)