Base class for all entities in Unity Scenes.
Note: Many variables in the GameObject class have been removed. To access,
for example GameObject.renderer in csharp use GetComponent<Renderer>() instead.
See Also: Component.
| activeInHierarchy | Defines whether the GameObject is active in the Scene. |
| activeSelf | El estado activo local de este GameObject. (Solo lectura) |
| isStatic | Gets and sets the GameObject's StaticEditorFlags. |
| layer | The layer the game object is in. |
| scene | Escena de la que forma parte el GameObject. |
| tag | El tag de este game object. |
| transform | El Transform adjuntado a este GameObject. |
| GameObject | Crea un nuevo game object, llamado name. |
| AddComponent | Agrega una clase componente llamada className al game object. |
| BroadcastMessage | Llama al método denominado methodName de todos los MonoBehaviour en este game objecto en cualquiera de sus hijos. |
| CompareTag | ¿Este game object está etiquetado con tag? |
| GetComponent | Devuelve un componente de tipo type si el game object tiene a alguno adjuntado, o null si no lo tiene. |
| GetComponentInChildren | Devuelve el componente del tipo type en el GameObject o en alguno de sus hijos usando búsqueda de primero en profundidad. |
| GetComponentInParent | Retrieves the component of Type type in the GameObject or any of its parents. |
| GetComponents | Devuelve todos los componentes del tipo type en el GameObject. |
| GetComponentsInChildren | Devuelve todos los componentes del tipo type en el GameObject, o alguno de sus hijos. |
| GetComponentsInParent | Devuelve todos los componentes del tipo type en el GameObject o en alguno de sus padres. |
| SendMessage | Llama al método denominado methodName en cada MonoBehaviour de este game object. |
| SendMessageUpwards | Llama al método denominado methodName en todos los MonoBehaviour de este juego y en todos los ancestros del behaviour. |
| SetActive | Activates/Deactivates the GameObject, depending on the given true or false value. |
| TryGetComponent | Gets the component of the specified type, if it exists. |
| CreatePrimitive | Crea un game object con un mesh renderer primitivo y un collider apropiado. |
| Find | Encuentra un GameObject por el name y lo retorna. |
| FindGameObjectsWithTag | Returns an array of active GameObjects tagged tag. Returns empty array if no GameObject was found. |
| FindWithTag | Devuelve un GameObject activo etiquetado con tag. Devuelve null si ningún GameObject fue encontrado. |
| hideFlags | Should the object be hidden, saved with the Scene or modifiable by the user? |
| name | El nombre del objeto. |
| GetInstanceID | Devuelve el id de la instancia del objeto. |
| ToString | Returns the name of the object. |
| Destroy | Removes a GameObject, component or asset. |
| DestroyImmediate | Destroys the object obj immediately. You are strongly recommended to use Destroy instead. |
| DontDestroyOnLoad | Do not destroy the target Object when loading a new Scene. |
| FindObjectOfType | Devuelve el primer objeto activo cargado de tipo type. |
| FindObjectsOfType | Devuelve una lista de todos los objetos activos cargados de tipo type. |
| Instantiate | Clona el objeto original y devuelve el clon. |
| bool | ¿Existe el objeto? |
| operator != | Compare si dos objetos se refieren a un objeto diferente. |
| operator == | Compara dos referencias de objeto para ver si se refieren al mismo objeto. |