Search Issue Tracker
By Design
By Design in 2023.2.X
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
- Shader Graph Node information is briefly displayed in Graph Inspector when clicking on Category in the Blackboard
- Module installation fails with "Download failed: Validation Failed" errors when using beta.2 Hub version
- JsonConvert conversion fails trying to call GetCallbackMethodsForType when [OnDeserialized] is used in a class
- Shader Graph Category dropdown cannot be expanded/collapsed when clicking on the text
- Different text alignment in the column header in Entities "System" window
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
Resolution Note (2023.2.X):
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