Search Issue Tracker

Won't Fix

Votes

0

Found in

2022.3.37f1

6000.0.10f1

Issue ID

UUM-75239

Regression

No

Interface property is not shown in the Inspector when the null value is chosen while using the CustomPropertyDrawer attribute with the generic Object class

-

_Note: See pinned comment for a possible solution._

 

How to reproduce:
1. Open the “ReportPropertyDrawer“ project
2. Open the “SampleScene“
3. Open the “Assets > ScriptableObjects > SerializeReferenceOnly.asset“ in the Inspector
4. Toggle on and off the “Ensure Animal is Not Null“ property
5. Select the “null“ value in the “Animal“ drop-down list
6. Observe the “Animal“ property

Expected result: The “Animal“ property gets set to the “null“ value
Actual result: The “Animal“ properties drop-down disappears

Reproducible with: 2022.3.37f1, 6000.0.10f1
Could not test with: 2021.3.40f1 (List is replaced with “No GUI Implemented” message)

Reproducible on: macOS 14.5 (Intel), Windows 11 (User’s)
Not reproducible on: No other environments tested

Notes:
- The issue only appears while working with the “null“ value with the Interface type field with generic base class and “SerializeReference“ instead of a custom “PropertyAttribute”
- Works correctly with the abstract classes

  1. Resolution Note:

    Thank you for bringing this issue to our attention. Unfortunately, after careful consideration, we will not be addressing your issue now, as we are committed to resolving other higher-priority issues. Our priority levels are determined by factors such as the severity and frequency of an issue and the number of users affected by it. However, we know each case is different, so please continue to log any issues you find and provide any general feedback on our roadmap page to help us prioritize.
    Roadmap https://unity.com/roadmap/unity-platform/

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.