言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

Selection

Namespace: UnityEditor

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

Sumbission failed

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

Close

Cancel

Description

Access to the selection in the editor.

Static Variables

activeGameObject Returns the active game object. (The one shown in the inspector).
activeInstanceID Returns the instanceID of the actual object selection. Includes prefabs, non-modifyable objects.
activeObject Returns the actual object selection. Includes prefabs, non-modifyable objects.
activeTransform Returns the active transform. (The one shown in the inspector).
assetGUIDs Returns the guids of the selected assets.
gameObjects Returns the actual game object selection. Includes prefabs, non-modifyable objects.
instanceIDs The actual unfiltered selection from the Scene returned as instance ids instead of objects.
objects The actual unfiltered selection from the Scene.
transforms Returns the top level selection, excluding prefabs.

Static Functions

Contains 選択中のオブジェクトに指定のオブジェクト情報を含んでいるか確認します
GetFiltered 取得する種類やモードのフィルターをかけ、オブジェクトを取得します
GetTransforms Allows for fine grained control of the selection type using the SelectionMode bitmask.