Search Issue Tracker
Fixed
Fixed in 2022.3.72f1, 6000.0.67f1, 6000.3.6f1, 6000.4.0b6, 6000.5.0a6
Unknown (hidden) 6000.5.X
Votes
0
Found in
6000.0.65f1
6000.3.4f1
6000.4.0b4
6000.5.0a4
Issue ID
UUM-132087
Regression
Yes
PropertyDrawer gets disposed while still being active when adding a secondary component
How to reproduce:
1. Extract and open the attached “IN-128692.zip“ project
2. Open the Assets/Scenes/SampleScene.unity scene
3. Select the ‘Test Object’ GameObject in the Hierarchy
4. In the Inspector tab, click on ‘Add Component’
5. Add the ‘Other Test Object’ Script
6. Observe the console
Actual result: The ‘TestAttributeDrawer’ gets disposed right after being created, and the ‘Test Object (Script)’ PropertyDrawer shows “DISPOSED!“
Expected result: The ‘TestAttributeDrawer’ does not get disposed, and the ‘Test Object (Script)’ PropertyDrawer shows “This is a custom drawer for TestAttribute“
Reproducible with: 2023.3.0a10, 6000.0.65f1, 6000.3.4f1, 6000.4.0b4, 6000.5.0a4
Not reproducible with: 2023.3.0a9
Reproducible on: Ubuntu 22.04, macOS 26.2 (M1 Silicon)
Could not reproduce on: No other environment tested
Note: If you follow the steps and then remove the ‘Other Test Object (Script)' component, the Editor disposes of the property drawer and then creates a new one. Then, when the ‘Test Object’ GameObject is unselected, the Editor does not call the dispose method on the newly created property drawer.
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
- An "InvalidOperationException" error is thrown when TryRemoveItem is used with rebuildTree set to false
- Build fails with IL2CPP error when building on Android platform in a specific project
- Resize to Fit option for Import Activity window's Columns does nothing
- Cell template field is reset and an "ArgumentException" is thrown when template was edited and UI Document is reopened
- Broken hyperlink formatting in HDRP 3D Sample Tutorials
Resolution Note:
Fixed in 6000.5.0a6
Resolution Note (fix version 6000.5.0a6):
Fixed in 6000.5.0a6
Resolution Note (fix version 6000.3.6f1):
Fixed in 6000.3.6f1
Resolution Note (fix version 6000.0.67f1):
Fixed in 6000.0.67f1
Resolution Note (fix version 2022.3.72f1):
Fixed in 2022.3.72f1