Search Issue Tracker
By Design
Votes
0
Found in
2018.4
2020.2
2020.2.0a15
Issue ID
1257737
Regression
No
Scripts are deleted if the script's file name is empty and the escape button is pressed in rename mode
How to reproduce:
1. Open any Unity project
2. In the Project window, right click and create a new C# Script
3. Delete the name while in rename mode and press Escape
Expected result: the Script's name is reverted to the original ("NewBehaviourScript") and the Script is deselected
Actual result: the Script vanishes
Reproducible with: 2018.4.24f1, 2019.3.16f1, 2019.4.2f1, 2020.1.0b14, 2020.2.0a15
Notes:
1. Not reproducible when renaming an already existing Script
2. The Script does not get deleted when renaming it to an empty string by clicking away from the Script or pressing Enter instead of Escape
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- SystemInfo.get_graphicsDeviceName() is generating garbage GC Alloc when using Metal graphics API
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
Resolution Note (2020.2.9f1):
As the script/ asset is new if you dont give it a name we discard the creation.