Search Issue Tracker
Fixed in 2020.2.X
Votes
0
Found in
2018.4
2020.1.0f1
2020.2
Issue ID
1268965
Regression
No
'Can't add script' pop-up warns about abstract classes when dragging static classes onto GameObjects
How to reproduce:
1. Create a new Unity project
2. Create a new script that only contains an empty static class
3. Drag the script onto a GameObject
Expected result: the pop-up warns about static classes: "...The script class can't be static!"
Actual result: the pop-up warns about abstract classes: "...The script class can't be abstract!"
Reproducible with: 2018.4.26f1, 2019.4.8f1, 2020.1.2f1, 2020.2.0a10
Not reproducible with: 2020.2.0a11, 2020.2.0a20
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
- "Problem detected while importing the Prefab file" errors on Learning Templates import
- Crash on RaiseException during Socket.BeginConnect in Player when application connection is blocked through commercial firewall
- Decal Projector produces artifacts when the normal and decal are projected in negative z-direction and Normal Blend is set to 1
- Undoing slider field change only resets slider position, doesn't undo the value change
- Precision changes when a tangent is added to a Vertex node
Resolution Note (fix version 2020.2):
Message changed in 2020.2.0a11