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
- Animations change speed when rigidbody is added
- Low FPS persists when re-entering Play mode after an extended session in a specific project
- ListView list items in UIToolkit get stuck when reorderMode is set to Animated and they are reordered using two or more fingers on touch devices
- Editor or player crashes when using a deeply nested Particle System with a sub-emitter that has multiple references
- [Metal][iOS] Application freeze when switching between portrait and landscape orientation on iPad Pro
Resolution Note (2020.2.9f1):
As the script/ asset is new if you dont give it a name we discard the creation.