Unity Issue Tracker - GizmoType.InSelectionHierarchy not detected correctly when NotInSelectionHierarchy is defined
Fixed
UUM-72297
GizmoType.InSelectionHierarchy not detected correctly when NotInSelectionHierarchy is defined
Unity: Scene View
Fixed
6.2.X
6.1.X
6.0.X
2022.3.X
2021.3.X
UPDATED: How to reproduce:
1. Open the attached project "GizmosSelectedInHeirachyTests.zip"
2. Open "TestGizmoBehaviourDrawer.cs"
3. Change DrawSelectedGizmosAttempt3 to :
4. Open Assets/GizmoTest/Scenes/SampleScene.unity
5. Select "Main Camera" or "Directional Light"
Expected results: Gizmos are drawn for TestTarget
Actual results: Gizmo for TestTarget is not drawn. Reparenting TestParent under camera and then selecting light will start drawing the cube. So it sometimes works correctly but not always.