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
- Memory leak when a lot of UI elements are spawned and despawned
- Warnings are not logged in the Console window when using external code analyzers
- Errors “TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 288“ appear constantly when Prefab is open
- Crash on PPtr<Shader>::operator or NullException errors spammed in console when calling Dispose() on null GraphicsBuffer with baked Reflection Probes
- “EndRenderPass: Not inside a Renderpass” and other Render Graph errors in the Player when Render Graph is enabled and Overlay UI is used
Resolution Note (fix version 2020.2):
Message changed in 2020.2.0a11