|
GameObject utility functions.
Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.
GetStaticEditorFlags |
Gets the set StaticEditorFlags |
AreStaticEditorFlagsSet |
Returns true if the passed in StaticEditorFlags are set |
SetStaticEditorFlags |
Sets the StaticEditorFlags |
GetNavMeshLayer |
Get the navmesh layer for the GameObject |
GetNavMeshLayerFromName |
Get the navmesh layer from the layer name |
SetNavMeshLayer |
Set the navmesh layer for the gameobject |
GetNavMeshLayerNames |
Get all the navmesh layer names |