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
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
- Files in the target folder are deleted without a proper warning when building an iOS project
- Character animation freezes when toggling animator on/off in a coroutine
- Certain textures are incorrectly marked in the render pass list when observed through Render Graph Viewer
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.