---
title: NavigationMeshComponent
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/navigationmeshcomponent
---

# NavigationMeshComponent

A component that provides the navigation meshes an entity uses to find paths through a scene.

## Declaration

```swift
struct NavigationMeshComponent
```

## Overview

Overview Attach a navigation mesh component to an entity to supply the walkable surfaces that pathfinding relies on. Each NavigationMeshResource in navigationMeshes represents a baked region of the scene that agents with a matching NavigationComponent can travel across.

## Topics

### Creating a navigation mesh component

- [init(navigationMeshes:)](realitykit/navigationmeshcomponent/init(navigationmeshes:).md)

### Accessing the navigation meshes

- [navigationMeshes](realitykit/navigationmeshcomponent/navigationmeshes.md)

## Relationships

### Conforms To

- [Component](realitykit/component.md)

## See Also

### Game development

- [Gaming sample code projects](realitykit/game-development-sample-code.md)
- [Entity animations](realitykit/game-development-entity-animations.md)
- [Character control, skeletons, and inverse kinematics](realitykit/game-development-character-skeletons.md)
- [NavigationComponent](realitykit/navigationcomponent.md)
- [NavigationController](realitykit/navigationcontroller.md)
- [NavigationMeshResource](realitykit/navigationmeshresource.md)
