Version: 2022.1
언어: 한국어

Selection

class in UnityEditor

매뉴얼로 전환

설명

Access to the selection in the editor.

정적 변수

activeContextReturns the current context object, as was set via SetActiveObjectWithContext.
activeGameObjectReturns the active game object. (The one shown in the inspector).
activeInstanceIDReturns the instanceID of the actual object selection. Includes Prefabs, non-modifiable objects.
activeObjectReturns the actual object selection. Includes Prefabs, non-modifiable objects.
activeTransformReturns the active transform. (The one shown in the inspector).
assetGUIDsReturns the guids of the selected assets.
countReturns the number of objects in the Selection.
gameObjectsReturns the actual game object selection. Includes Prefabs, non-modifiable objects.
instanceIDsThe actual unfiltered selection from the Scene returned as instance ids instead of objects.
objectsThe actual unfiltered selection from the Scene.
selectionChangedDelegate callback triggered when currently active/selected item has changed.
transformsReturns the top level selection, excluding Prefabs.

정적 함수

ContainsReturns whether an object is contained in the current selection.
GetFilteredReturns the current selection filtered by type and mode.
GetTransformsAllows for fine grained control of the selection type using the SelectionMode bitmask.
SetActiveObjectWithContextSelects an object with a context.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961