X Tutup
Version: Unity 6.3 LTS (6000.3)
LanguageEnglish
  • C#

SelectionMode

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Determine the selection returned by Selection.GetTransforms.

The default transform selection mode is: SelectionMode.TopLevel | SelectionMode.ExcludePrefab | SelectionMode.Editable, which returns all parent transforms of objects that can be edited, and aren't prefabs.

Properties

Property Description
UnfilteredUses everything in the selection when passed to Selection.GetTransforms.
TopLevelOnly return the topmost selected transform. A selected child of another selected transform will be filtered out.
DeepUses the transform of the selection and all child transforms of the selection.
ExcludePrefabExcludes any prefabs from the selection.
EditableOnly include objects that can be edited.
AssetsUses any selected assets when passed to Selection.GetTransforms.
DeepAssetsIncludes all assets and subfolders if the selection contains folders.
X Tutup