Search Issue Tracker
Not Reproducible
Votes
0
Found in
4.5.0a5
Issue ID
585415
Regression
Yes
Script component does not get attached if any script contains syntax errors
To reproduce:
1. Open the attached project (it contains the main camera and a script attached to it which intentionally cause some compiler errors)
2. Open the test scene
3. Select the main camera
4. Add Component -> New Script -> Create And Add
5. Notice that the file gets created but is not attached to the object
6. Remove the first script from the main camera object
7. Try to Add Component -> New Script -> Create And Add again
8. See that the result is the same
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- 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
- "GetPreferedValue" returns max value when using auto-sizing
- UI Builder doesn't update the style sheet when using "Extract inline style" right-click option
Add comment