h8man / NavMeshPlus

Unity NavMesh 2D Pathfinding
MIT License
1.79k stars 209 forks source link

Error when baking the Navmesh #205

Open GaLzZy opened 3 months ago

GaLzZy commented 3 months ago

Hi i'm getting this NullRef error whenever I bake my Navmesh using modifiers on my tilemaps and NavigationCollectSources2d...

image

Thanks!

h8man commented 3 months ago

Looks like an issue, I'll take a look.

GaLzZy commented 3 months ago

I played with some settings yesterday and in the end I got it to work so I couldn't tell you where it was coming from :/

NiiloMi commented 3 months ago

I have a fairly similiar issue on which occours on multiple 2021.3 versions. The following exception at editor time as soon as i add a Navigation Surface component to a Scene: NullReferenceException: Object reference not set to an instance of an object NavMeshPlus.Components.Editors.NavMeshSurfaceEditor.RenderBoxGizmoSelected (NavMeshPlus.Components.NavMeshSurface navSurface, UnityEditor.GizmoType gizmoType) (at Library/PackageCache/com.h8man.2d.navmeshplus@ef1e438e70/NavMeshComponents/Editor/NavMeshSurfaceEditor.cs:310) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

GaLzZy commented 3 months ago

For me I have this setup: image

And whenever I put a Navigation Modifier on my Walls layer so the blue doesn't overlap on the walls, it errors out

Tbravege commented 3 months ago

Same issue here. It occurs on my 2021.3.34 version, I tried to create a new project based on 2023 version and it works properly. Also works fine with 2022 version.

GaLzZy commented 3 months ago

Same issue here. It occurs on my 2021.3.34 version, I tried to create a new project based on 2023 version and it works properly. Also works fine with 2022 version.

I am on Unity 6 which essentially is 2023

c13303 commented 3 months ago

same issue in Unity 2021.3.24f1