GameObjectUtility

class in UnityEditor

매뉴얼로 전환

설명

GameObject utility functions.

정적 함수

AreStaticEditorFlagsSetReturns true if the passed in StaticEditorFlags are set on the GameObject specified.
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.
GetNavMeshAreaGet the navmesh area index for the GameObject.
GetNavMeshAreaFromNameGet the navmesh area index from the area name.
GetNavMeshAreaNamesGet all the navmesh area names.
GetStaticEditorFlagsGets the StaticEditorFlags of the GameObject specified.
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.
SetNavMeshAreaSet the navmesh area for the gameobject.
SetParentAndAlignSets the parent and gives the child the same layer and position.
SetStaticEditorFlagsSets the StaticEditorFlags of the specified GameObject.