Выберите подходящий для вас язык программирования. Все примеры кода будут представлены на выбранном языке.
class in UnityEditor
Благодарим вас за то, что вы помогаете нам улучшить качество документации по Unity. Однако, мы не можем принять любой перевод. Мы проверяем каждый предложенный вами вариант перевода и принимаем его только если он соответствует оригиналу.
ЗакрытьПо определённым причинам предложенный вами перевод не может быть принят. Пожалуйста <a>попробуйте снова</a> через пару минут. И выражаем вам свою благодарность за то, что вы уделяете время, чтобы улучшить документацию по Unity.
ЗакрытьAccess to the selection in the editor.
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. |
selectionChanged | Delegate callback triggered when currently active/selected item has changed. |
transforms | Returns the top level selection, excluding prefabs. |
Contains | Returns whether an object is contained in the current selection. |
GetFiltered | Returns the current selection filtered by type and mode. |
GetTransforms | Allows for fine grained control of the selection type using the SelectionMode bitmask. |