Navmesh Path Test Component
This component is for testing the runtime navmesh.
Place an object with this component in your scene, then specify another object as the PathEnd
. Make sure you have a navmesh config and a path search config set up and chosen for this component to use.
Path searches are only possible while simulating a scene, so press the play button to test it.
Now the plugin will automatically generate the navmesh and display the found path. If it doesn't show anything, check the Visualize options. VisualizePathState
can help figuring out what went wrong. For instance the start and end points might not be in a location where the navmesh is reachable, at all, or they might be too high above the ground.
Also use the navmesh visualization functionality to make sure any mesh was generated successfully, at all.
Component Properties
VisualizePathCorridor
: If enabled, the polygons that form the corridor of the path search result are visualized.VisualizePathLine
: If enabled, the shortest line through the corridor is visualized.VisualizePathState
: If enabled, the current state of the path search is printed as text at the location of this object.PathEnd
: A references to another object that acts as the path's destination.NavmeshConfig
: Which navmesh type to do the search on.PathSearchConfig
: Which path search type to use for the path search.