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

Scripting

-

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

  1. 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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.