Version: 2022.3
言語: 日本語

Selection

class in UnityEditor

マニュアルに切り替える

説明

エディターで選択オブジェクトにアクセスするためのクラス

Static 変数

activeContextReturns the current context object, as was set via SetActiveObjectWithContext.
activeGameObjectアクティブなゲームオブジェクトを返します(インスペクターで示されているひとつ)
activeInstanceIDReturns the instanceID of the actual object selection. Includes Prefabs, non-modifiable objects.
activeObjectReturns the actual object selection. Includes Prefabs, non-modifiable objects.
activeTransformアクティブな Transform を返します(インスペクターで示されているひとつ)
assetGUIDs選択したアセットの GUID を返します。
countReturns the number of objects in the Selection.
gameObjectsReturns the actual game object selection. Includes Prefabs, non-modifiable objects.
instanceIDs objects の代わりにインスタンス ID がシーンから返されます。フィルタされない Selection。
objectsシーンからフィルタせずに Selection のオブジェクトを返します
selectionChanged現在アクティブか選択されている項目が変更されたとき、デリゲートのコールバックをトリガします。
transformsReturns the top level selection, excluding Prefabs.

Static 関数

Contains選択中のオブジェクトに指定のオブジェクト情報を含んでいるか確認します
GetFiltered取得するtypeやmodeでフィルターをかけ、オブジェクトを取得します
GetTransforms SelectionMode ビットマスクを使用して Selection の種類を細かく制御できます
SetActiveObjectWithContextSelects an object with a context.