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 | Локальное состояние активности данного GameObject'а. (Read Only) |
| isStatic | API, которое определяет является ли игровой объект статичным. Данное API только для редактора. |
| layer | The layer the game object is in. |
| scene | Scene that the GameObject is part of. |
| tag | Тег данного игрового объекта. |
| transform | Прикрепленный Transform к данному GameObject'у. (null, если компонент не прикреплен). |
| GameObject | Создает объект с именем name. |
| AddComponent | Добавляет компонент класса className на игровой объект. |
| BroadcastMessage | Вызывает метод с именем methodName на каждом скрипте MonoBehaviour этого игрового объекта или на любом из его потомков. |
| CompareTag | Помечен ли данный игровой объект тегом tag? |
| GetComponent | Возвращает компонент типа type, если он прикреплен к игровому объекту и null, если не прикреплен. |
| GetComponentInChildren | Возвращает компонент типа type из GameObject'а или из любого его потомка, используя поиск в глубину. |
| GetComponentInParent | Возвращает все компоненты типа type из GameObject'а или из любого его родителя. |
| GetComponents | Возвращает все компоненты GameObject'а типа type. |
| GetComponentsInChildren | Возвращает все компоненты типа type из GameObject'а или из любого его потомка. |
| GetComponentsInParent | Возвращает все компоненты типа type из GameObject'а или из любого его родителя. |
| SendMessage | Вызывает метод с именем methodName в каждом MonoBehaviour на этом объекте. |
| SendMessageUpwards | Вызывает на каждом MonoBehaviour в данном игровом объекте и на каждом предке скрипта метод с именем methodName. |
| SetActive | Activates/Deactivates the GameObject, depending on the given true or false value. |
| CreatePrimitive | Создает игровой объект с рендером меша некоторого примитива и соответствующим коллайдером. |
| Find | Находит объект с именем name и возвращает его. |
| FindGameObjectsWithTag | Возвращает список активных GameObject'ов с тегом tag. Возвращает пустой список, если не найдено ни одного GameObject'а. |
| FindWithTag | Возвращает один активный GameObject, помеченный тегом tag. Если GameObject не найдет возвращает null. |
| hideFlags | Should the object be hidden, saved with the Scene or modifiable by the user? |
| name | The name of the object. |
| GetInstanceID | Returns the instance id of the object. |
| ToString | Returns the name of the GameObject. |
| Destroy | Удаляет GameObject, Component или 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 | Returns the first active loaded object of Type type. |
| FindObjectsOfType | Returns a list of all active loaded objects of Type type. |
| Instantiate | Clones the object original and returns the clone. |
| bool | Does the object exist? |
| operator != | Compares if two objects refer to a different object. |
| operator == | Compares two object references to see if they refer to the same object. |