Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.4.0f1
2019.2.0a1
Issue ID
1115668
Regression
No
Scripts can have names starting with a number
To reproduce:
1) Create a new project
2) Right-click in project and create a C# Script
3) Name it with a number at the start of the name (e.g. "1foo.cs")
Expected: Name reverts back to old name or underscore is appended, because otherwise it would create incorrect C# script (class name must start with a letter or underscore)
Actual: File is created and you get compiler errors for unexpected identifier
Reproduced in 2017.4.0f1, 2019.2.0a1
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
- Tile Palette selected dropdown text does not update when palette is renamed
- ArgumentException thrown and reference to Template gets unset when opening UXML file after editing referenced Template in Play mode
- [iOS][WebGL] Player freezes when multiple properties of a VisualElement are changed at the same time
- Warning 'GetControlID at event ValidateCommand returns a controlID different from the one in the Layout event' is logged when undoing the deletion of an Edited Freeform 2D Light
- ShadowCaster2D breaks on certain Rotation positions when Casting Source is set to PolygonCollider2D
Resolution Note:
We really appreciate your contribution to the Unity product. Thank you for reporting this issue. We take every case submitted to us seriously by investigating the impact on you, our customer, as well as the impact it may have on the engineering and experience of our product.
This particular case has been investigated thoroughly and we have decided, in the interests of protecting the stability and features of Unity for users that rely upon the affected versions, to not address this issue.