GameObjectUtility

class in UnityEditor

Cambiar al Manual

Descripción

Funciones de utilidad de GameObject.

Funciones Estáticas

AreStaticEditorFlagsSetRetorna ture si el pase en StaticEditorFlags está configurado en el GameObject especificado.
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.
GetNavMeshAreaObtiene el indice de la área navmesh para el GameObject.
GetNavMeshAreaFromNameObtiene el indice de la área navmesh del nombre de la área.
GetNavMeshAreaNamesObtiene todos los nombres del área navmesh.
GetStaticEditorFlagsObtiene el StaticEditorFlags del GameObject especificado.
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.
SetNavMeshAreaEstablece el área navmesh para el gameobject.
SetParentAndAlignEstablece el padre y le da al hijo la misma capa y posición.
SetStaticEditorFlagsSets the StaticEditorFlags of the specified GameObject.