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

  1. 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

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.