GameObjectUtility

class in UnityEditor

Switch to Manual

Description

Функции утилиты GameObject.

Static Functions

AreStaticEditorFlagsSetВозвращает true, если хотя бы один из флагов в StaticEditorFlags задан.
EnsureUniqueNameForSiblingYou can use this method after parenting one GameObject to another to ensure the child GameObject has a unique name compared to its siblings in the hierarchy.
GetMonoBehavioursWithMissingScriptCountGets the number of MonoBehaviours with a missing script for the given GameObject.
GetNavMeshAreaВозвращает navmesh слой для указанного GameObject'а.
GetNavMeshAreaFromNameВозвращает navmesh слой по имени слоя.
GetNavMeshAreaNamesВозвращает имена всех navmesh слоев.
GetStaticEditorFlagsЗадает флаги StaticEditorFlags.
GetUniqueNameForSiblingYou can use this method before instantiating a new sibling, or before parenting one GameObject to another, to ensure the new child GameObject has a unique name compared to its siblings in the hierarchy.
RemoveMonoBehavioursWithMissingScriptRemoves the MonoBehaviours with a missing script from the given GameObject.
SetNavMeshAreaЗадает navmesh слой для указанного gameobject'а.
SetParentAndAlignSets the parent and gives the child the same layer and position.
SetStaticEditorFlagsSets the StaticEditorFlags of the specified GameObject.