百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
N

NavMeshPlus

> 开发工具
开源

Unity NavMesh 2D 路径寻找

2.3K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

Unity NavMesh 2D 路径寻找

NavMeshPlus

NavMeshComponents.Extensions provides you with ability to create navigation meshes that are generated automatically from your Scene geometry, which allows characters to move intelligently around the game world.

Unity 2D Pathfinding

This repo is fork of Unity NavMeshComponents enhanced with Extensions system for 2d Pathfinding and more. [link]

Wiki [here]

How To [here].

Demo [github].

Discuss [unityforum].

2D Navigation

In repo you will find implementation of NavMeshSurface and 2d Extensions for tilemap, sprites and collider2d top down games.

To use it in your project:

  1. Copy repo into your Asset folder (or install as a package).
  2. Create Empty Object in scene root.
  3. Add "Navigation Surface" component to Empty Object and add NavMeshCollecSources2d component after.
  4. Click Rotate Surface to XY (to face surface toward standard 2d camera x-90;y0;z0)
  5. Add "Navigation Modifier" component to scene objects obstacles, override the area.
  6. In "Navigation Surface" hit Bake.

How does it works:

  1. It uses NavMeshSurface as base implementation.
  2. Implements world bound calculation.
  3. Implements source collector of tiles, sprites and 2d colliders
  4. Creates walkable mesh box from world bounds.
  5. Convert tiles, sprites and 2d colliders to sources as NavMeshBuilder would do.

Components & Extensions:

  • NavMeshLink
  • NavMeshModifier
  • NavMeshModifierVolume
  • NavMeshSurface:
    • NavMeshCollectSources2d
    • NavMeshCollectRootSources2d
    • NavMeshCacheSources2d

Utilities

  • NavMeshExtensionsProvider.cs
  • NavMeshBuilder2d.cs
  • NavMeshExtension.cs
  • NavMeshBuilderState.cs

Setup

You can use this in two different ways: downloading this repository or adding it to your project's Package Manager manifest. Git must be installed and added to your path. Alternatively, you can pick scripts and place in your project's Assets folder.

Method 1. Download

Download or clone this repository into your project in the folder Packages/com.h8man.2d.navmeshplus.

Method 2. Package Manager Manifest

The following line needs to be added to your Packages/manifest.json file in your Unity Project under the dependencies section:

"com.h8man.2d.navmeshplus": "https://github.com/h8man/NavMeshPlus.git#master"

Method 3. Add Package form git URL

Go to Package Manager click + and then select Add Package form git URL paste url:

https://github.com/h8man/NavMeshPlus.git

GitHub Issues· 0 开放

在 GitHub 查看全部

暂无开放 Issues,或尚未同步最近议题。

核心特点

  • •NavMeshLink
  • •NavMeshModifier
  • •NavMeshModifierVolume
  • •NavMeshSurface:
  • •NavMeshCollectSources2d
  • •NavMeshCollectRootSources2d
  • •NavMeshCacheSources2d
  • •NavMeshExtensionsProvider.cs
  • •NavMeshBuilder2d.cs
  • •NavMeshExtension.cs

> 标签

C#2d2d-navmesh2d-pathfindingcollider2d

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具