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
- Profiler connects to a different opened Editor project when more than one project is open and building for WebGL with Autoconnect Profiler enabled
- Creating and then deleting the "Integration Update: Rotation" block breaks and makes unusable VFX Graph
- “ArgumentNullException: Value cannot be null.” when deleting a newly created input action
- Undoing the creation of the "Button - TextMeshPro" GameObject only removes Canvas and EventSystem GameObjects
- NullReferenceException errors are thrown when entering the Play Mode when ShaderGraph window is focused
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.