Search Issue Tracker
Fix In Review
Fix In Review for 2022.3.72f1, 6000.5.0a6
Unknown (hidden) 6000.5.X
Fixed in 6000.0.67f1, 6000.3.6f1, 6000.4.0b6
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
- [Linux] Cannot reorder GameObjects in the Hierarchy when the AI Assistant package is installed
- [iOS] Text Input field stops receiving changes when the "Cancel" button is used on the soft keyboard
- [WebGPU] URP RenderGraph RenderPass doesn't clear textures
- Query Builder items display raw code style names instead of human readable labels in search field
- “+” button does nothing and has no functionality when clicked in Human Template "Bone Template" list
Resolution Note:
Fixed in 6000.4.0b6
Resolution Note (fix version 6000.5.0a6):
Fixed in 6000.4.0b6
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