Version: 2021.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.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961