SelectionMode
Determine the selection returned by Selection.GetTransforms.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Enum
- Namespace: UnityEditor
- Assembly: UnityEditor
[Flags]public enum SelectionMode
Remarks
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.
Fields
Value | Description |
|---|---|
| Assets | Uses any selected assets when passed to Selection.GetTransforms. |
| Deep | Uses the transform of the selection and all child transforms of the selection. |
| DeepAssets | Includes all assets and subfolders if the selection contains folders. |
| Editable | Only include objects that can be edited. |
| ExcludePrefab | Excludes any prefabs from the selection. |
| TopLevel | Only return the topmost selected transform. A selected child of another selected transform will be filtered out. |
| Unfiltered | Uses everything in the selection when passed to Selection.GetTransforms. |