Search Issue Tracker
Fixed in 2020.1.X
Votes
0
Found in
2020.1.0a13
Issue ID
1199206
Regression
No
Editor window becomes uncloseable when the script creating it is removed, then added again
Steps to reproduce:
1. Open new project
2. Create a script that opens an editor window (Or just use the example script from https://docs.unity3d.com/ScriptReference/EditorWindow.html)
3. Open the window
4. Copy the script to another location in your disk
5. Delete the original
6. Observe the window saying it "Failed to Load"
7. Add the script again to your project
8. The window loses it's docking tab and you can not close it anymore (Getting an error in the console every time)
Short version of the Error: (full version attached to case)
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <437ba245d8404784b9fbab9b439ac908>:0)
Use case: Having a window created by a package open when updating to a different package version (Remove and then Add via package manager)
Reproduced on: 2019.1.14f1, 2019.2.13f1, 2019.3.0b12, 2020.1.0a14
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [D3D12][XR] SRP Foveation foveated rendering on Windows platform not working when Graphics API is set to D3D12
- The Game view renders extremely saturated or almost black when FSR 1.0, HDR and DX12 are enabled
- Build error on Android when using Patch And Run paired with Play Asset Delivery
- "Browse" button for Xcode in the "Build Profiles" window is too big
- USS styles fail to inherit correctly when contentContainer is overridden in a custom control
Add comment