Search Issue Tracker
Duplicate
Votes
0
Found in
2020.2.0a18
Issue ID
1268328
Regression
No
[Polymorphic Serialization] List of inhereted classes fails to load when only one inhereted class goes missing
When displaying a list of inhereted classes(much like we do in URP for ScriptableRenderFeatures) if one of those classes fails to compile or goes missing, the other classes in the list become invalid too, making this very volitile.
Repo steps:
1. Open attacthed project
2. Select the 'renderer' scriptable object
3. Notice a list of two 'ScriptableFeatures'
4. Make one of the classes(ScriptableFeatureOne/Two) fail to compile either by changing code or removing from project(with being able to return it)
5. Select the 'renderer' scriptable object
6. Notice that the list is unable to draw correctly as it fails to load one of the classes
7. Return the failing class to it's working condition
8. Notice the list on the 'renderer' is now back to working fine without any loss of data
Expected results: Only the class that was failing to comopile/be found should be erroring out in the list, not all of the classes
Actual results: All classes seem to fail to draw even though they exist and their data is intact
Repoed in: Unity 2020.2.0a18 but this has been the case since when PolymorphicSerialization was introduced
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
This is a duplicate of issue #1204407