Version: 2022.1
Navigation Areas and Costs
Using NavMesh Agent with Other Components

Loading Multiple NavMeshes using Additive Loading

The NavMeshes in different ScenesA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary
are not connected by default. When you load another level using Application.LoadLevelAdditive() you will need to use OffMesh links to connect the NavMeshes in different scenes.

In this example we have Scene 1 and Scene 2. The Scene 1 has an OffMesh Link starting over a walkable area and landing over a walkable area in Scene 2. There can be as many OffMesh Links connecting the Scenes as necessary.

When authored the other end point of the scene connecting OffMesh links are not connected. After a new Scene is loaded, the OffMesh Links will be reconnected.

If the multiple scenes have NavMeshA mesh that Unity generates to approximate the walkable areas and obstacles in your environment for path finding and AI-controlled navigation. More info
See in Glossary
overlapping at the same area, the position picking may be arbitrary NavMesh at that location. This applies to agents, OffMesh Links and position picking using the NavMesh API. You should create the scene crossing OffMesh links so that they start and end clearly on over one NavMesh only. Overlapping NavMesh areas are not automatically connected.

Further Reading

Navigation Areas and Costs
Using NavMesh Agent with Other Components
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961