Class NavmeshBase Extends NavGraph, INavmeshHolder, ITransformedGraph, IRaycastableGraph
Base class for RecastGraph and NavMeshGraph.
Public Methods
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.
Replace tile at index with nodes created from specified navmesh.
Public Static Methods
Public Variables
Maximum (vertical) distance between the sides of two nodes for them to be connected across a tile edge.
Called when tiles have been completely recalculated.
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.
Should navmesh cuts affect this graph.
Size of the bounding box.
True if the graph has been scanned and contains nodes.
Handles navmesh cutting.
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.
Public Static Variables
Inherited Public Members
World bounding box for the graph.
Enable to draw gizmos in the Unity scene view.
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.
Name of the graph.
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.
Private/Protected Members
Throws an exception if it is not safe to update internal graph data right now.
Generate connections between the two tiles.
Used to optimize linecasts by precomputing some values.
Cached NNConstraint.None with distanceXZ=true to reduce allocations.
Reuse nodes that keep the exact same vertices after a tile replacement.
List of nodes that are going to be destroyed as part of a batch update.
True if the current batch of tile updates requires navmesh cutting to be done.
Positive if currently updating tiles in a batch.
List of tiles updating during batch.
True if the graph exists, false if it has been destroyed.
All tiles.
Deprecated Members
Perform nearest node searches in XZ space only.