Search Issue Tracker
Fixed in 2020.1.X
Votes
0
Found in
2017.4.0f1
2018.4.0f1
2019.1.0a1
2019.2.0a1
2019.3.0a1
2019.3.0b1
2020.1.0a1
Issue ID
1186393
Regression
No
Child GameObjects with transform.SetAsLastSibling() in OnDisable aren't always disabled when parent is disabled
Steps to reproduce:
1. Open attached project "1186393.zip"
2. Open "SampleScene"
3. Enter Play mode
4. In the Hierarchy -> dropdown "Canvas" GameObject child list -> dropdown "Panel" GameObject child list
5. Disable one of the parent GameObjects, either "Canvas" or "Panel"
Expected results: All child GameObjects are disabled
Actual results: Half of the GameObjects are disabled
Reproducible with: 2017.4.32f1, 2018.4.10f1, 2019.1.14f1, 2019.2.7f2, 2019.3.0b4, 2020.1.0a5
Notes:
- Disabling parent GameObject disables half of the child GameObjects
- If parent GameObject is disabled and half of the child GameObjects are active, then disabling parents parent disables half of the GameObjects that are active and should have been already disabled (can be seen in the attached video "vsFok7wDND.mp4")
- If you go out of Play mode while the script has transform.SetAsLastSibling(), unity crashes (case 1186891)
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 warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note (fix version 2020.1):
Fixed in 2020.1.0a20