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
- Shader warning in 'Hidden/Core/DebugOccluder' thrown after building High Definition 3D Sample Template
- Audio Mixer “+” buttons overlap with UI when the Audio Mixer window layout is set to Horizontal
- "Clear" button in the "Set project display name" closes all the pop-up instead of clearing just a name from the field
- Video Player renders no video on specific devices when using Vulkan
- The Editor slows itself down by showing tons of warnings when the majority of TransformAccessArrays content are NullRefs
This is a duplicate of issue #1204407