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.

Public
DrawGizmos ()
Public
OnGraphsPostUpdateBeforeAreaRecalculation ()

Called after graphs have been updated.

Public

Public Static Methods

DeleteLinks ()
DrawArch (a, b, color)
Public Static
LinkObjects ()
Public Static
LinkObjects (a, b, removeConnection)
Public Static
UnlinkObjects ()
Public Static

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
FindAllModifiers ()
Public Static
OnGraphsPostUpdate ()

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

Public
OnGraphsPreUpdate ()

Called before graphs are updated using GraphUpdateObjects.

Public
OnLatePostScan ()

Called at the end of the scanning procedure.

Public
OnPostCacheLoad ()

Called after cached graphs have been loaded.

Public
OnPostGraphLoad ()

Called after a graph has been deserialized and loaded.

Public
OnPostScan ()

Called right after all graphs have been scanned.

Public
OnPreScan ()

Called right before graphs are going to be scanned.

Public
TriggerEvent (type)

Triggers an event for all active graph modifiers.

Public Static

Private/Protected Members

Awake ()
Protected
GetModifiersOfType< T > ()
Protected Static
OnDestroy ()
Protected
OnDisable ()

Removes this modifier from list of active modifiers.

Protected
OnEnable ()

Adds this modifier to list of active modifiers.

Protected
OnUpgradeSerializedData (version, unityThread)

Handle serialization backwards compatibility.

Protected
Reset ()

Handle serialization backwards compatibility.

Protected
uniqueID

Unique persistent ID for this component, used for serialization.

Protected
usedIDs

Maps persistent IDs to the component that uses it.

Protected Static