NavMeshSurface Class

Namespace
UnityEngine.AI
Base Types
  • MonoBehaviour
graph BT Type-->Base0["MonoBehaviour"] Type["NavMeshSurface"] class Type type-node

Syntax

[ExecuteAlways]
[DefaultExecutionOrder(-102)]
[AddComponentMenu("Navigation/NavMeshSurface", 30)]
[HelpURL("https://github.com/Unity-Technologies/NavMeshComponents#documentation-draft")]
public class NavMeshSurface : MonoBehaviour

Attributes

Type Description
ExecuteAlways
DefaultExecutionOrder
AddComponentMenu
HelpURL

Properties

Name Value Summary
activeSurfaces List<NavMeshSurface>
static
agentTypeID int
buildHeightMesh bool
center Vector3
collectObjects CollectObjects
defaultArea int
ignoreNavMeshAgent bool
ignoreNavMeshObstacle bool
layerMask LayerMask
navMeshData NavMeshData
overrideTileSize bool
overrideVoxelSize bool
size Vector3
tileSize int
useGeometry NavMeshCollectGeometry
voxelSize float

Methods

Name Value Summary
AddData() void
BuildNavMesh() void
GetBuildSettings() NavMeshBuildSettings
RemoveData() void
UpdateNavMesh(NavMeshData) AsyncOperation