Search Issue Tracker
By Design
Votes
0
Found in
2021.3.20f1
2022.2.10f1
2023.1.0b7
2023.2.0a6
Issue ID
UUM-29710
Regression
No
"Serialization depth limit 10 exceeded at 'EvolutionNode.icon'. There may be an object composition cycle in one or more of your serialized classes." when opening the project
How to reproduce:
Open the attached project "Project Huesos.zip"
Expected results: "Serialization depth limit 10 exceeded at 'EvolutionNode.icon'. There may be an object composition cycle in one or more of your serialized classes." is not thrown in the Console window
Actual results: "Serialization depth limit 10 exceeded at 'EvolutionNode.icon'. There may be an object composition cycle in one or more of your serialized classes." is thrown in the Console window
Reproducible with: 2021.3.20f1, 2022.2.10f1, 2023.1.0b7, 2023.2.0a6
Could not test with: 2020.3.46f1 (compilation errors in the Console window)
Reproducible on: Windows 10
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
- Frame Debugger's Hierarchy is not navigable when connecting it to the project built with the Volumetric Fog
- The number of SetPass Calls is increasing when attaching the Frame Debugger to the Player
- Scrollbar briefly appears in the Package Manager during installation process even when the package list is too short to require scrolling
- Script resets to use the previous Skybox color when saving the Scene changes
- [2D] Sprite Library Editor window throws NullReferenceException error when entering Play Mode with Game View maximised
Resolution Note:
In order to avoid the mentioned "Serialization depth limit exceeded" error please use [SerializeReference] attribute on the self-referencing list. In this case the field that causes this error is the List<EvolutionNode> next in the class EvolutionNode. Marking this list as [SerializeReference] will solve the issue.
You can find more information here https://docs.unity3d.com/ScriptReference/SerializeReference.html