Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.1.0f3
Issue ID
943967
Regression
No
Adding a custom attribute to a derived class makes IsSubclassOf return false
How to reproduce:
1. Download attached project file and open "AttributeBugReport" Scene
2. In Window Panel go to Tools -> Test The attributes
3. At the Console, you see that ClassWithLongAttribute check is failed
Expected result: adding a custom attribute to a derived class, IsSubclassOf should return true
Actual result: adding a custom attribute to a derived class makes IsSubclassOf return false.
Using MonoScript.GetClass() with this class attribute decorator:
[Test(hierarchyPath:"Requirements")] - The comparison fails. But if using like this:
[Test("Requirements")] - The comparison passes
Reproduced with: 5.6.4p1, 2017.1.0f3, 2017.1.0p4, 2017.2.0b8, 2017.3.0a5
Note: .Net 4.6 configuration should be set
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
- Assets are created in the Package folders when creating assets via custom buttons in the Inspector window or other windows
- “Select” windows are named differently on Windows and macOS
- [Windows] No minimum “Select” window size
- Enabling “Editor Extension Authoring” in UI Builder doesn’t dirty the document and saving with shortcut doesn’t persist the state
- WebRequest.Create() function fails with "URI prefix is not recognized" errors when the project is built for Linux Standalone or Windows Dedicated Server
Resolution Note:
This particular case has been investigated thoroughly and we have decided, in the interests of protecting the stability and features of Unity for users that rely upon the affected versions, to not address this fix for the time being. We understand that this will cause problems for some users, and so may address in a future version.