ドキュメント

Unity Engine

Unity Engine

SelectionMode

Determine the selection returned by Selection.GetTransforms.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Enum
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
[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.