h8man / NavMeshPlus

Unity NavMesh 2D Pathfinding
MIT License
1.77k stars 206 forks source link

NavMeshPlus.Components.Editors.NavMeshSurfaceEditor.RenderBoxGizmoSelected #207

Closed ConanGentleman closed 2 months ago

ConanGentleman commented 2 months ago

I also see following error like https://github.com/h8man/NavMeshPlus/issues/200 ,but it doesn't work. NullReferenceException: Object reference not set to an instance of an object NavMeshPlus.Components.Editors.NavMeshSurfaceEditor.RenderBoxGizmoSelected (NavMeshPlus.Components.NavMeshSurface navSurface, UnityEditor.GizmoType gizmoType) (at Packages/NavMeshPlus/NavMeshComponents/Editor/NavMeshSurfaceEditor.cs:310) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) version: 2021.3.14f1.

h8man commented 2 months ago

I will add code for unity 2021.3.14f1 on this weekend. Now it only works in 2022.3

dre4mer12345 commented 2 months ago

is it possible to also add an editor exception to correct Build error: CS0426: The type name ‘SyncTile’ does not exist in the type ‘Tilemap'

for unity 2021.3 you have to pull the package out of cache and fix it in order to do builds. the error is on account of CollectTilemapSourcesCache2d.cs

h8man commented 2 months ago

https://github.com/h8man/NavMeshPlus/commit/ea4ded6bbbd41641b8d0b1d2dd307dcad59868ce

h8man commented 2 months ago

@ConanGentleman please check if it work with 2021.3.14f1.

h8man commented 2 months ago

no reply