Class TileHandlerHelper Extends VersionedMonoBehaviour

Public

Helper for navmesh cut objects.

Adding an instance of this component into the scene makes sure that NavmeshCut components update the recast graph correctly when they move around.

A* Pro Feature:

This is an A* Pathfinding Project Pro feature only. This function/class/variable might not exist in the Free version of the A* Pathfinding Project or the functionality might be limited.
The Pro version can be bought here

Public Methods

DiscardPending ()

Discards all pending updates caused by moved or modified navmesh cuts.

Public
ForceUpdate ()

Checks all NavmeshCut instances and updates graphs if needed.

Public
UseSpecifiedHandler (newHandler)

Use the specified handler, will create one at start if not called.

Public

Public Variables

updateInterval

How often to check if an update needs to be done (real seconds between checks).

Public

Private/Protected Members

Awake ()
Protected
FindGraph ()
Private
forcedReloadRects
Private Readonly
HandleOnDisableCallback (obj)

Called when a NavmeshCut or NavmeshAdd is disabled.

Private
HandleOnEnableCallback (obj)

Called when a NavmeshCut or NavmeshAdd is enabled.

Private
handler
Private
lastUpdateTime
Private
OnDisable ()
Private
OnEnable ()
Private
OnRecalculatedTiles (tiles)

Called when some recast graph tiles have been completely recalculated.

Private
OnUpgradeSerializedData (version, unityThread)

Handle serialization backwards compatibility.

Protected
Start ()
Private
Update ()

Update is called once per frame.

Private