Search Issue Tracker
Won't Fix
Won't Fix in 2023.2.X
Votes
0
Found in
2020.3.46f1
2021.3.22f1
2022.2.13f1
2023.1.0b10
2023.2.0a8
Issue ID
UUM-31355
Regression
No
Multiple "Identifier expected", "{ expected" and "} expected" errors are thrown when naming a Script by a number
How to reproduce:
1. Open the attached “My Projectaasdasd.zip“
2. Create a new C# Script (Right click > Create > C# Script)
3. Name the Script “1”
Expected result: No errors are thrown in the Console window
Actual result: Multiple "Identifier expected", "{ expected" and "} expected" errors are thrown in the Console window
Reproducible with: 2020.3.46f1, 2021.3.23f1, 2022.2.13f1, 2023.1.0b10, 2023.2.0a8
Reproduced in: macOS Monterey 12.6
Note: Issue is not reproducible when creating a script without naming it by a number and then renaming the script to a number
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
- Line Brush blue outline appears at incorrect position when painting start of line in Tile Palette
- [URP] All materials render black when building via batchmode or without rendering Scene/Game view in Editor if Decal renderer Technique is set to "Automatic"
- Player Tags list shows extra blank space behind the scrollbar in the "Player Tags" settings window
- Edit Angular Limits gizmo handles are small and easy to miss-click in the Scene view
- Duplicate Player Tag save fails silently with no error or validation message
Resolution Note:
It is not possible to have a script that starts with a number. The compilation error is a bit cryptic.
Resolution Note (2023.2.X):
It is not possible to have a script that starts with a number. The compilation error is a bit cryptic.