Search Issue Tracker
By Design
Votes
0
Found in
2019.3
2020.1
2020.1.0a26
2020.2
Issue ID
1224590
Regression
No
Child object visibility is reset when it's parent's visibility is toggled off and on
How to reproduce:
1. Open the attached 'project-1224590.zip' project
2. In the Hierarchy window expand 'GameObject'
3. Toggle off the visibility of 'Child B'
4. Toggle off the visibility of 'GameObject'
5. Toggle on the visibility of 'GameObject'
Expected result: 'Child B' visibility is still toggled off
Actual result: 'Child B' visibility is toggled on
Reproducible with: 2019.3.4f1, 2020.1.0a26, 2020.2.0a1
Could not test with: 2017.4.37f1, 2018.4.18f1 (scene visibility toggle not available)
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
- Foldout arrow indent is misaligned in the Inspector when used in Custom Type
- [Android] The Player screen turns black when playing a video under certain conditions
- Search window icons at the bottom are cut off when Search window is resized vertically
- "Try something else?" text label is cut off when searching for a long text in the Search window
- Rendering Debugger window sections do not have a minimum width set when resizing with the slider in the middle of the window
Resolution Note:
This is the current default behavior which respect the principle of a parent controlling its children. To perform this particular action, we can use the shortcut Alt+Click on the visibility icon which will only affect the target object. It's also part of the doc:
[...]
Toggling visibility for an object and its children affects all child objects, from the “target” object all the way down to the bottom of the hierarchy.
- Alt + Click a GameObject’s visibility icon in the Hierarchy window to toggle between hiding and showing the GameObject only.
[...]
https://docs.unity3d.com/Manual/SceneVisibility.html