Mixed Reality Utility Kit - Navigating in the scene
Updated: Mar 13, 2025
After completing this section, the developer should be able to create NavMeshes that can be used to control locomotion within the scene.
The
SceneNavigation class provides powerful tools for creating dynamic and flexible navigation systems within mixed reality environments. It is designed to handle complex environments, offering developers the ability to create seamless and intuitive navigation experiences.
These APIs allow for the generation of a NavMesh at runtime, using custom agents and build settings. Developers can choose to integrate with Unity’s built-in NavMesh system or utilize scene objects and their labels for direct NavMesh construction. This functionality simplifies the process of creating and testing navigable spaces, making it accessible to developers of all experience levels. Being able to easily generate the NavMesh at runtime, ensures that the navigation system can adapt to different user spaces, providing developers with the flexibility to adapt navigation paths in response to different user environments.
When using scene data to construct the NavMesh, the scene anchors can be dynamically configured as both navigable surfaces and obstacles. For example, the top of a couch can be set as a navigable surface, while the volume of the couch acts as an obstacle. In this case an AI agent would be able to walk across the surface of a table, but would move around the couch volume. The NavMesh building options can be customized directly in the SceneNavigation’s component in the editor, reducing the complexity and time required to build navigation systems. This integration provides an intuitive interface for designing and validating NavMesh configurations directly within the Unity editor.