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
- “ValidateSchema Error2” error is thrown in the Player when using IL2CPP Scripting Backend
- Symbolic links disappear when a .xcframework file is added through the Unity Editor
- Errors regarding importing occur upon opening a project when the "Library" folder is deleted
- MeshRenderer.sortingLayerID cannot be changed when change is being done in a built Player
- Warnings related to App Icon are being thrown when building project to VisionOS Platform
Add comment