Search Issue Tracker
Fixed in 2021.2.X
Votes
4
Found in
2017.4.0f1
2018.4.0f1
2019.1.0a1
2019.2.0a1
2019.2.0b7
2019.3.0a1
Issue ID
1167675
Regression
No
GameObjects in Hierarchy window are not hidden when using HideFlags.HideInHierarchy
How to reproduce:
1. Open attached "project-1167675.zip" project
2. Select "Main Camera" in the Hierarchy window
3. In the Editor select "Tools" -> "Hide Selected Gameobject In Hierarchy"
Expected result: "Main Camera" GameObject is hidden from the Hierarchy window
Actual result: "Main Camera" GameObject is not hidden from the Hierarchy window
Reproducible with: 2017.4.30f1, 2018.4.3f1, 2019.1.9f1, 2019.2.0b9, 2019.3.0a8
-
vincentgravitas
Aug 07, 2020 17:56
The original forum thread outlining this issue is locked but I wanted to add a note.
If you callEditorSceneManagement.MarkSceneDirty(game_object.scene);
immediately after updating the hide flags of game_object, the hierarchy window will update to reflect those changes. Furthermore, changing hide flags alone did not appear to mark the scene as having unsaved changes (dirty?), so this might be an appropriate workaround for the time being (this issue has been active for more than a year and seems to affect most if not all versions of Unity).
Original forum thread: https://forum.unity.com/threads/bug-g-gameobject-hideflags-hideflags-hideinhierarchy-does-nut-update-hierarchy.704078/
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
- The "UnityWebRequest.result" of the "UnityWebRequestTexture.GetTexture" method changes when accessing "UnityWebRequest.downloadHandler" texture
- Slider rounding does not allow setting certain valid numbers as Values when Low and High Values not set to default
- UI Builder Canvas has too big resizing zone on the outside of the canvas
- GetCurrentAnimatorClipInfoCount() and GetNextAnimatorClipInfoCount() return 0 when animator is in transition
- GPU utilization increases by 20% on Meta Quest headsets when Render Graph is enabled on 6000.0.16f1 and higher
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.0a14