h8man / NavMeshPlus

Unity NavMesh 2D Pathfinding
MIT License
1.76k stars 205 forks source link

Upgrading to 2022 #181

Closed 0xdeployer closed 7 months ago

0xdeployer commented 8 months ago

Hi I recently upgraded to 2022 from 2021. NavMeshSurface was moved from UnityEngine.AI and some things changed. For example BuildNavMeshAsync no longer exists within the NavMeshSurface class. Any recommendations in regards to updating?

h8man commented 8 months ago

Unity released UnityEngine.AI with NavMeshSurface as package, now we have namespace conflict. So namespace has been changed namespace NavMeshPlus.Components

Also component names changed from NavMesh to Navigation

Vulkan83 commented 8 months ago

with version 2022.3.x I am able to bake but no graphic representation of the area available for navigation is displayed

vazquez595654 commented 8 months ago

Same issue. When I bake, nothing happens. No representation of the navmesh, and hence I get the error stating that SetDestination can only be called on an active agent that has been placed on a NavMesh.

Also, your directions on the github don't match:

"Add "Navigation Surface" component to Empty Object and add NavMeshCollecSources2d component after."

That component no longer exist.

h8man commented 8 months ago

Exact version of Unity please.

h8man commented 8 months ago

image

I don't know. Pease share a test project, or try demo https://github.com/h8man/RedHotSweetPepper