Unity Script Reference:
GizmoType.SelectedOrChild
Description

Draw the gizmo if it is selected or a child of the selection.