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
- [Tile Palette] Sprites not rendering when brush tool "Paint a filled box with active brush" is used for the first time
- Adding available Nodes with longer names in Fragment Context window overflow Fragment Context window in Shader Graph
- "Layer Palette Profile" Asset is automatically applied to the second Terrain but doesn't load any layers
- "Terrain Tools" shortcut conflicts with the Overlays shortcut by default
- Longer Shader Graph Property Reference names breaks VFX Graph Output Particle Node
This is a duplicate of issue #1204407