This will be fixed in more recent versions and LTS
6.1 reached it's end of life
2021.3 reached end of life, the fix will be done in more recent versions of the engine
How to reproduce:
1. Open the attached "IN-81793" project
2. Open the "Level 1" Scene
3. In the Scene Hierarchy, locate any parent GameObject and disable its visibility in Scene View via the Visibility toggle in the Hierarchy
4. Enter and exit Play Mode
5. Observe the Scene Hierarchy window
Expected result: Visibility toggle state persists between Play mode instances
Actual result: Visibility toggle gets reset when exiting Play mode, additionally, the Active Scene in the Hierarchy still indicates that the Scene has objects set to be invisible after such reset even if affected objects are no longer invisible
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Notes:
Depending on the Editor version, the visibility toggle gets reset as soon as the user enters Play Mode (2021.3.43f1) or only after the user enters and exits Play Mode (2022.3.44f1 and 6000.0.17f1)
After the visibility toggle gets reset, the GameObject that was previously toggled invisible in the Hierarchy cannot be set to invisible again directly. Only after interacting with the Scene Visibility toggle or another GameObject that has not been previously interacted with does the GameObject toggle become visible again and can be interacted with.
Prioritise and Follow this issue
Have a workaround or additional info about this issue?