Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

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