Class NodeLink Extends GraphModifier

Public

Connects two nodes with a direct connection.

It is not possible to detect this link when following a path (which may be good or bad), for that you can use NodeLink2.

Public Methods

Apply ()

Connects the start and end points using a link or refreshes the existing link.

Called after graphs have been updated.

Public Static Methods

DrawArch (a, b, up, color)
LinkObjects ([...])

Public Variables

End
Public
Start
Public
costFactor

The connection will be this times harder/slower to traverse.

Public
deleteConnection

Delete existing connection instead of adding one.

Public
end

End position of the link.

Public
oneWay

Make a one-way connection.

Public

Inherited Public Members

EventType

GraphModifier event type.

Public

Called after graphs have been updated using GraphUpdateObjects or navmesh cutting.

Called before graphs are updated using GraphUpdateObjects.

Called at the end of the scanning procedure.

Called after cached graphs have been loaded.

Called after a graph has been deserialized and loaded.

Called right after all graphs have been scanned.

Called right before graphs are going to be scanned.

TriggerEvent (type)

Triggers an event for all active graph modifiers.

Private/Protected Members

Awake ()

Removes this modifier from list of active modifiers.

Adds this modifier to list of active modifiers.

OnUpgradeSerializedData (migrations, unityThread)

Handle serialization backwards compatibility.

Reset ()

Handle serialization backwards compatibility.

UpgradeSerializedData (isUnityThread)
uniqueID

Unique persistent ID for this component, used for serialization.

Protected
usedIDs

Maps persistent IDs to the component that uses it.

Protected Static