Class LinkGraph Extends NavGraph
Graph for off-mesh links.
This is an internal graph type which is used to store off-mesh links. An off-mesh link between two nodes A and B is represented as:A <--> N1 <--> N2 <--> B
. where N1 and N2 are two special nodes added to this graph at the exact start and endpoints of the link.
This graph is not persistent. So it will never be saved to disk and a new one will be created each time the game starts.
It is also not possible to query for the nearest node in this graph. The GetNearest method will always return an empty result. This is by design, as all pathfinding should start on the navmesh, not on an off-mesh link.
Inner Types
Public Methods
Lower bound on the squared distance from the given point to the closest node in this graph.
Public Variables
True if the graph has been scanned and contains nodes.
True if the graph will be included when serializing graph data.
True if the graph should be visible in the editor.
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.
True if the graph exists, false if it has been destroyed.