Search Issue Tracker
By Design
By Design in 2023.2.X
Votes
0
Found in
2021.3.29f1
2022.3.6f1
2023.1.6f1
2023.2.0b2
Issue ID
UUM-44730
Regression
No
IInterface variables aren't shown in the Inspector when serializing
How to reproduce:
1. Open the attached “SerializeBug.zip“ project
2. Open the “SampleScene“ Scene
3. Select the “GameObject“ GameObject in the Hierarchy
4. Observe the “Example1“ and “Example2“ Scripts in the Inspector
Expected result: The IInterface variable is shown in the Script Components
Actual result: The IInterface variable isn’t shown in the Script Components
Reproducible with: 2021.3.29f1, 2022.3.6f1, 2023.1.6f1, 2023.2.0b2
Reproduced on: macOS 13.4.1 (Intel), Windows 10 (by reporter)
Note: The user reported that a class with a private interface field with a serialized reference attribute will be shown in the Inspector, but it wasn’t showing when testing the issue
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
- After converting a Built-in project to URP render texture related errors are spammed that can lead to Game view being rendered on top of Scene view
- UI Builder slider value lags and stutters when sliding/modifying certain property values
- "Reset UI Builder Layout" functionality inconsistently changes Canva Size when "Match Game View" is enabled/disabled
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
- Burst Inspector middle divider is jittering when resized with the Burst Inspector window docked
Resolution Note:
Currently choosing a specific implementation for a SerializeReference interface fields in the inspector is not supported. To achieve this users will need to implement custom editors for these types.
It is however confusing that user could select implementation for Example1 as shown in the screenshot, as it shouldn't have been possible and we were not able to reproduce it. If this is the case, please feel free to reopen the bug for further investigation. In doing so, please provide more details such as the Unity version used, information whether any custom editor or packages were used.
Resolution Note (2023.2.X):
Currently choosing a specific implementation for a SerializeReference interface fields in the inspector is not supported. To achieve this users will need to implement custom editors for these types.
It is however confusing that user could select implementation for Example1 as shown in the screenshot, as it shouldn't have been possible and we were not able to reproduce it. If this is the case, please feel free to reopen the bug for further investigation. In doing so, please provide more details such as the Unity version used, information whether any custom editor or packages were used.