Class OffMeshLinks

Public

Manager for off-mesh links.

This manager tracks all active off-mesh links in the scene and recalculates them when needed. If an off-mesh link is activated, a LinkGraph will also be added to the graph list to store the special nodes necessary for the links to work.

Whenever a graph update happens, the DirtyBounds method should be called with the bounds of the updated area. This will cause the links touching that bounding box to be recalculated at the end of the graph update step.

Typically you will not need to interact with this class yourself, instead you can use the pre-built components like NodeLink2.

Inner Types

Public Methods

Add (link)
Public
Dirty (link)
Public
DirtyBounds (bounds)

Mark links touching the given bounds as dirty.

Public
OffMeshLinks (astar)
OnDisable ()
Public
Refresh ()
Public
Remove (link)
Public

Public Enums

Directionality
Public
OffMeshLinkStatus
Public

Private/Protected Members

ClampSegment (anchor, graphMask, maxSnappingDistance, result, nodes)
Private
DirtyNoSchedule (link)
Internal
ScheduleUpdate ()
Private
astar
Private
cachedNNConstraint
Private
pendingAdd
Private
tree
Private
updateScheduled
Private