Search Issue Tracker
Won't Fix
Votes
2
Found in
2018.4
2020.1.9f1
2021.1
Issue ID
1295316
Regression
No
Unity drawing an unused Namespace's Struct when creating a Struct with the same name
Reproduction steps:
1. Open attached Project "StructIssue"
2. Attach the "BuggedStruct" Script to any GameObject
Expected result: The Public Struct "AABB" is Exposed to the Inspector as the Namespace Unity.Math is not used
Actual result: The Struct "Unity.Math.AABB" is Exposed to the Inspector and multiple errors are thrown to the Console
Reproducible with: 2018.4.30f1, 2019.4.16f1, 2020.1.17f1, 2020.2.0b14, 2021.1.0a9
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
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
Resolution Note (2021.1.X):
For the inspector to work properly type names cannot match those of the internal types from SerializedPropertyType, even when they are inside another namespace. In this case 'AABB' is used for BoundsInt. Doing extra checks to support this would slow down the inspector, so instead we recommend to avoid these type names.