SelectionMode.TopLevel

SelectionMode.TopLevel

Description

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