Search Issue Tracker
Fixed in 2021.2.X
Votes
0
Found in
2020.2.6f1
2020.3
2021.1
2021.2
Issue ID
1320367
Regression
Yes
AssetDatabase.CreateAsset in OnGUI of PropertyDrawer disposes SerializedObject of SerializedProperty
Reproduction steps:
1. Open user's project "PropertyDrawerCreateAssetBug.zip"
2. Click on "SampleObject" in the Assets folder
3. In the Inspector window, click on the "Generate" button
Expected result: "SOTargetSAMPLE" is created and the "SUCCESS!" message is printed out in the console
Actual result: "SOTargetSAMPLE" is created and the "NullReferenceException: SerializedObject of SerializedProperty has been Disposed." error is printed out in the console
Reproducible with: 2020.2.6f1, 2020.3.0f1, 2021.1.0b11, 2021.2.0a9
Not reproducible with: 2018.4.33f1, 2019.4.22f1, 2020.2.5f1, 2020.3.1f1, 2021.1.0b12, 2021.1.0f1, 2021.2.0a10
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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
Resolution Note (fix version 2021.2):
Fixed in 2021.2.0a10