hello everyone!
i’m trying to use NavMesh Graph using my own mesh made in blender, but i’m having a problem.
when i try to add the mesh to the NavMesh Graph i get this error:
NullReferenceException: Object reference not set to an instance of an object
Pathfinding.AstarPathEditor.SerializeGraphs (Pathfinding.Serialization.SerializeSettings settings, System.UInt32& checksum) (at Assets/AstarPathfindingProject/Editor/AstarPathEditor.cs:1313)
Pathfinding.AstarPathEditor.SerializeGraphs (System.UInt32& checksum) (at Assets/AstarPathfindingProject/Editor/AstarPathEditor.cs:1304)
Pathfinding.AstarPathEditor.OnUndoRedoPerformed () (at Assets/AstarPathfindingProject/Editor/AstarPathEditor.cs:1256)
UnityEditor.Undo.Internal_CallUndoRedoPerformed () (at <e6e2fa0a47414cd2ac33237924761b45>:0)
i was following this documentation so here’s what i did so far:
- opened blender
- deleted everything in the hierarchy
- created a plane
- subdivided it two times then delete the inner four quads
- exported as .FBX
- import into unity
- add an empty GameObject and name it A*
- Reset Transform
- add “Pathfinder” to A*
- add new Graph “NavMesh Graph”
- add Plane Mesh from the .FBX file to NaveMesh as the source mesh (Got Error)
- reset the mesh to “none” rename the .FBX file to “Plane” manually
- re-add Plane Mesh (Got the same Error)