SelectionMode.TopLevel Manual     Reference     Scripting  
Scripting > Editor Enumerations > SelectionMode
SelectionMode.TopLevel

SelectionMode.TopLevel

Description

Only return the topmost selected transform. A selected child of another selected transform will be filtered out.