Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

GameObjectUtility

Namespace: UnityEditor

Description

GameObject utility functions.

Static Functions

AreStaticEditorFlagsSetReturns true if the passed in StaticEditorFlags are set.
GetNavMeshLayerGet the navmesh layer for the GameObject.
GetNavMeshLayerFromNameGet the navmesh layer from the layer name.
GetNavMeshLayerNamesGet all the navmesh layer names.
GetStaticEditorFlagsGets the set StaticEditorFlags.
SetNavMeshLayerSet the navmesh layer for the gameobject.
SetStaticEditorFlagsSets the StaticEditorFlags.