Class NavmeshBase Extends NavGraph, INavmesh, INavmeshHolder, ITransformedGraph, IRaycastableGraph
Base class for RecastGraph and NavMeshGraph.
Inner Types
Public Methods
Returns a new transform which transforms graph space to world space.
End batch updating of tiles.
Returns the nearest node to a position using the specified NNConstraint.
Returns the nearest node to a position using the specified constraint .
Calls a delegate with all nodes in the graph.
Tile at the specified x, z coordinate pair.
Returns a bounds object with the bounding box of a group of tiles.
Returns a bounds object with the bounding box of a group of tiles.
Returns an XZ bounds object with the bounds of a group of tiles in graph space.
Tile coordinates from a tile index.
Returns the tile coordinate which contains the specified position.
All tiles.
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.
Returns a rect containing the indices of all tiles by rounding the specified bounds to tile borders.
Vertex coordinate for the specified vertex index.
Vertex coordinate in graph space for the specified vertex index.
Returns if there is an obstacle between origin and end on the graph.
Returns if there is an obstacle between origin and end on the graph.
Returns if there is an obstacle between origin and end on the graph.
Returns if there is an obstacle between origin and end on the graph.
Returns if there is an obstacle between origin and end on the graph.
Draw gizmos for the graph.
Finds the first node which contains position.
Moves the nodes in this graph.
Moves the nodes in this graph.
Replace tile at index with nodes created from specified navmesh.
Start batch updating of tiles.
Public Static Methods
Tile index from a vertex index.
Returns if there is an obstacle between origin and end on the graph.
Returns if there is an obstacle between origin and end on the graph.
Public Variables
Called when tiles have been completely recalculated.
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.
Perform nearest node searches in XZ space only.
Show the surface of the navmesh.
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
Number of nodes in the graph.
Returns the nearest node to a position.
Returns the nearest node to a position using the specified NNConstraint.
Calls a delegate with all nodes in the graph until the delegate returns false.
Scan the graph.
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.
Private/Protected Members
Clear the tile at the specified coordinate.
Generate connections between the two tiles.
Creates an outline of the navmesh for use in OnDrawGizmos in the editor.
Creates a mesh of the surfaces of the navmesh for use in OnDrawGizmos in the editor.
Create connections between all nodes.
Deserializes graph type specific node data.
Destroys all nodes in the graph.
Destroy several nodes simultaneously.
Cleans up any unmanaged data that the graph has.
Fills graph with tiles created by NewEmptyTile.
Used to optimize linecasts by precomputing some values.
Maximum (vertical) distance between the sides of two nodes for them to be connected across a tile edge.
Cached NNConstraint.None with distanceXZ=true to reduce allocations.
Creates a single new empty tile.
Function for cleaning up references.
Called after all deserialization has been done for all graphs.
Reuse nodes that keep the exact same vertices after a tile replacement.
Determines how normals are calculated.
Internal method to scan the graph.
Serializes Node Info.
List of nodes that are going to be destroyed as part of a batch update.
Currently updating tiles in a batch.
List of tiles updating during batch.
True if the graph exists, false if it has been destroyed.
Handles navmesh cutting.
All tiles.