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
- "Draw Additional Lights Shadowmap" calls increase when custom MaterialBlockProperty is used
- Crash on _platform_memmove when importing the "Dragon Crashers - URP 2D Sample Project" to a new 2D project
- "Shader is not supported on this GPU" warnings and and shaders are not loading when building the project for non-Chromium browsers
- [iOS][URP] The screen flickers and the "Execution of the command buffer was aborted due to an error during execution" error is thrown continuously
- Shortcut Manager shows empty conflict filter when resolving runtime conflicts involving different contexts
Resolution Note (fix version 2020.1):
Fixed in 2020.1.0a20