Search Issue Tracker
Fixed in 2018.2.12f1
Fixed in 2018.2.X, 2018.3.X
Votes
1
Found in
2018.2.0a1
2018.2.7f1
Issue ID
1079998
Regression
Yes
Transform.hierarchyCount always returns 0 regardless of the number of transforms in the transform's hierarchy data structure
How to reproduce:
1. Create a new Unity project
2. Create a new script that prints out 'Transform.hierarchyCount'
3. Attach the script to any GameObject
4. Enter Play Mode
Expected result: the number of transforms in the transform's hierarchy is printed in the Console window
Actual result: the number '0' is always printed in the Console window
Reproducible with: 2018.2.0a1, 2018.2.8f1, 2018.3.0b2, 2019.1.0a1
Not reproducible with: 2018.1.9f2
Comments (3)
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
- AsyncReadManager.GetFileInfo fails to get files when they were created during runtime.
- UI elements are not visible on certain X-axis positions when the rotation of the Y-axis is 90 (or -90) degrees
- Crash on __pthread_kill when initializing Vuplex WebView while entering the Play Mode
- Crash on FindSurface when adding a custom Renderer Feature to a 2D Renderer Data Asset
- [Android] [Vulkan] [UI Toolkit] Application crashes when the device is rotated when it has UI Toolkit TextField on Vulkan devices
palex-nx
Dec 13, 2018 15:10
No, it is not. Broken in 2018.2.19. Please reopen and fix than. For now I forced to use transform.GetComponentsInChildren<RectTransform>().Length, wich slows my project down to 12 FPS.
palex-nx
Oct 23, 2018 08:52
Fixed in2018.2.13f1
DenverCoulson
Oct 02, 2018 20:23
This is still broken in 2018.2.10f1.