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
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
- Burst Inspector middle divider is jittering when resized with the Burst Inspector window docked
- JsonConvert conversion fails trying to call GetCallbackMethodsForType when [OnDeserialized] is used in a class
- Different text alignment in the column header in Entities "System" window
- Objects with Universal Render Pipeline/Particles/Lit shader are always lit up when changing their Rendering Layer Mask
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.