docs.unity3d.com
    Show / Hide Table of Contents

    Create a NavMesh

    You need to create a NavMesh to define an area of your scene within which a character can navigate intelligently.

    To create a NavMesh do the following:

    1. Select the scene geometry where you want to add the NavMesh.
    2. In the Inspector window, click Add Component.
    3. Select Navigation > NavMesh Surface.
    4. In the NavMesh Surface component, specify the necessary settings. For details on the available settings, refer to NavMesh Surface component.
    5. When you are finished, click Bake.
      The NavMesh is generated and displayed in the scene as a blue overlay on the underlying scene geometry whenever the Navigation window is open and visible.

    Additional resources

    • Navigation window
    • Creating a NavMeshAgent
    • NavMesh Surface component
    • Navigation Areas and Costs
    Back to top
    Copyright © 2023 Unity Technologies
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on Thursday, October 19, 2023