Class NavMeshGraph Extends NavmeshBase, IUpdatableGraph
Generates graphs based on navmeshes.
Navmeshes are meshes in which each triangle defines a walkable area. These are great because the AI can get so much more information on how it can walk. Polygons instead of points mean that the FunnelModifier can produce really nice looking paths, and the graphs are also really fast to search and have a low memory footprint because fewer nodes are usually needed to describe the same area compared to grid graphs.
The navmesh graph requires that you create a navmesh manually. The package also has support for generating navmeshes automatically using the RecastGraph.
For a tutorial on how to configure a navmesh graph, take a look at Using navmeshes.
Inspector
Mesh to construct navmesh from.
Offset in world space.
Rotation in degrees.
Scale of the graph.
Determines how normals are calculated.
Default penalty to apply to all nodes.
Inner Types
Public Methods
Public Static Methods
Public Variables
Maximum (vertical) distance between the sides of two nodes for them to be connected across a tile edge.
Determines how normals are calculated.
Size of a tile in world units along the X axis.
Size of a tile in world units along the Z axis.
World bounding box for the graph.
Radius to use when expanding navmesh cuts.
Offset in world space.
Determines how normals are calculated.
Rotation in degrees.
Scale of the graph.
Mesh to construct navmesh from.
Inherited Public Members
Returns an XZ bounds object with the bounds of a group of tiles in graph space.
Returns a rect containing the indices of all tiles touching the specified bounds.
Returns a rect containing the indices of all tiles touching the specified bounds.
Lower bound on the squared distance from the given point to the closest node in this graph.
Called when tiles have been completely recalculated.
Replace tile at index with nodes created from specified navmesh.
World bounding box for the graph.
Enable to draw gizmos in the Unity scene view.
Should navmesh cuts affect this graph.
Size of the bounding box.
Index of the graph, used for identification purposes.
Used as an ID of the graph, considered to be unique.
Used in the editor to check if the info screen is open.
Default penalty to apply to all nodes.
True if the graph has been scanned and contains nodes.
Name of the graph.
Handles navmesh cutting.
Is the graph open in the editor.
True if the graph will be included when serializing graph data.
True if the graph should be visible in the editor.
Show an outline of the polygons in the Unity Editor.
Show the surface of the navmesh.
Show the connections between the polygons in the Unity Editor.
Number of tiles along the X-axis.
Number of tiles along the Z-axis.
Determines how the graph transforms graph space to world space.
Private/Protected Members
Throws an exception if it is not safe to update internal graph data right now.
Generate connections between the two tiles.
True if the graph exists, false if it has been destroyed.
All tiles.