Version: 2020.3
言語: 日本語

GameObjectUtility

class in UnityEditor

マニュアルに切り替える

説明

GameObject のユーティリティクラスです

Static 関数

AreStaticEditorFlagsSet渡された StaticEditorFlags が指定された GameObject に設定されている場合、True を返します
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.
GetNavMeshAreaGameObject から NavMesh エリアを取得します
GetNavMeshAreaFromNameNavMesh エリア名から NavMesh エリアの値を取得します
GetNavMeshAreaNames存在するすべての NavMesh エリア名を取得します
GetStaticEditorFlags指定された GameObject の 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.
SetNavMeshAreaGameObject の NavMesh エリアを設定します
SetParentAndAlign親を設定し、子に同じレイヤーと位置を与えます
SetStaticEditorFlagsSets the StaticEditorFlags of the specified GameObject.