Unity Issue Tracker - The hierarchyCount counts the number of all Transforms in the Hierarchy when the root GameObject is nested
Fixed
DANB-613
The hierarchyCount counts the number of all Transforms in the Hierarchy when the root GameObject is nested
Package: 2D Animation
Fixed
9.1.X
9.1.1
10.1.X
10.1.2
Won't Fix
7.1.X
Issue doesn't exist in 7.1.X
How to reproduce:
1. Open the “HierarchyCount“ project
2. Open the “_Simple“ scene
3. Open Window -> Analysis -> Memory Profiler
4. Enter Play Mode
5. In the Memory Profiler, press "Capture New Snapshot"
6. In the Snapshot, navigate to All of Memory and enter "Boris" into the search bar
7. Under Managed -> Managed Objects ->UnityEngine.U2D.Animation.SpriteSkin, select "Boris"
8. Expand the hierarchyCache field and observe the _buckets size
Expected result: _buckets size is 23
Actual result: _buckets size is over 23