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
- Any small change in UI Builder Inspector refreshes Editor Inspector
- Inaccurate Box Collider boundaries on a rotated child Cube when the parent GameObject Scale is non-uniform
- [Android] "SHADOWS_SCREEN" set as shader Keyword when no "_ShadowMapTexture" is bound leads to freeze on a build on some Mali GPU devices
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- Global Scenes are not included in the Build when building multiple Build Profiles at the same time
This is a duplicate of issue #1204407