Unity Script Reference:
GizmoType.NotSelected
Description

Draw the gizmo if it is not selected and also no parent/ancestor object is selected.