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
- Error ‘cannot use casts on l-values’ when a variable is assigned inside a second-level nested if statement before being used in a conversion
- "You cannot save to an invalid folder" warning dialog box is shown when canceling Tile Palette creation
- Global Volume visual details are blurred when Tonemapping mode is set to any other than 'ACES'
- [Android] Stage information is not logged when Log Shader Compilation is enabled
- [Vulkan] The memory allocation increases rapidly when there are multiple (three or more) Real-Time Reflection Probes in the Scene
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