-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullReferenceException in CalculateWorldBounds #102
Comments
Hello, @AbstractFlame NavMeshSurface2d - is obsolete, you should try extensions system with NavMeshCollectSources2d. |
Thank you for the fast answer :) |
First of all: Thanks to h8man for your work! I have the same Problem when Baking with NavMeshSurface ( i followed your current manual): |
I don't know how it happen, I need test project to see it myself and debug lines |
Bump.
|
@RB3009 @h8man Hi! Did you manage to fix it? I have a similar problem and I will attach some screenshots so you can better understand the error. More context: |
Anybody fixed that problem cause I have the same issue |
I've clicked on Rotate Surface to XY, have an agent and 2 tilemaps with NavMeshModifier.
StackTrace:
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.AI.NavMeshSurface2d.CalculateWorldBounds (System.Collections.Generic.List`1[T] sources) (at Library/PackageCache/com.h8man.2d.navmeshplus@4a5aec0a09/NavMeshComponents/Scripts/NavMeshSurface2d.cs:458)
UnityEngine.AI.NavMeshSurface2d.BuildNavMesh () (at Library/PackageCache/com.h8man.2d.navmeshplus@4a5aec0a09/NavMeshComponents/Scripts/NavMeshSurface2d.cs:190)
NavMeshManager.Bake () (at Assets/Scripts/NavMeshManager.cs:20)
TileMapGenerator.Start () (at Assets/Scripts/TileMapGenerator.cs:21)
The text was updated successfully, but these errors were encountered: