Selecciona tu lenguaje de programación favorito. Todos los fragmentos de código serán mostrados en este lenguaje.
class in UnityEditor
Gracias por ayudarnos a mejorar la calidad de la documentación de Unity. A pesar de que no podemos aceptar todas las sugerencias, leemos cada cambio propuesto por nuestros usuarios y actualizaremos los que sean aplicables.
CerrarPor alguna razón su cambio sugerido no pudo ser enviado. Por favor <a>intente nuevamente</a> en unos minutos. Gracias por tomarse un tiempo para ayudarnos a mejorar la calidad de la documentación de Unity.
CerrarAccess 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 | La selección de la escena actual sin filtrar. |
selectionChanged | Delegate callback triggered when currently active/selected item has changed. |
transforms | Returns the top level selection, excluding prefabs. |
Contains | Devuelve si un objeto está incluido en la selección actual o no. |
GetFiltered | Devuelve la selección actual filtrada por tipo y modo. |
GetTransforms | Allows for fine grained control of the selection type using the SelectionMode bitmask. |