Class NavGraph Extends IGraphInternals
Base class for all graphs.
Public Methods
Number of nodes in the graph.
Returns the nearest node to a position.
Returns the nearest node to a position using the specified NNConstraint.
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 until the delegate returns false.
Calls a delegate with all nodes in the graph.
Draw gizmos for the graph.
Moves the nodes in this graph.
Scan the graph.
Public Variables
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.
Private/Protected Members
Deserializes graph type specific node data.
Destroys all nodes in the graph.
True if the graph exists, false if it has been destroyed.
Function for cleaning up references.
Called after all deserialization has been done for all graphs.
Internal method to scan the graph.
Used in the Unity editor to store serialized settings for graph inspectors.
Serializes graph type specific node data.
Deprecated Members
An old format for serializing settings.
Inverse of matrix.
A matrix for translating/rotating/scaling the graph.
Moves nodes in this graph.
Scan the graph.
Use to set both matrix and inverseMatrix at the same time.