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
- Any small change in UI Builder Inspector refreshes Editor Inspector
- Inaccurate Box Collider boundaries on a rotated child Cube when the parent GameObject Scale is non-uniform
- [Android] "SHADOWS_SCREEN" set as shader Keyword when no "_ShadowMapTexture" is bound leads to freeze on a build on some Mali GPU devices
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- Global Scenes are not included in the Build when building multiple Build Profiles at the same time
Resolution Note (fix version 2020.2):
Message changed in 2020.2.0a11