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.
ModifyMaskIfGameObjectIsHiddenForPrefabModeInContextUse this method if a custom scene culling mask is needed for renderers that should be shown or hidden in a Scene view when Prefab Mode in Context is active.
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.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961