A* Pathfinding Project  4.1.11
The A* Pathfinding Project for Unity 3D
IUpdatableGraph Interface Reference

Graphs which can be updated during runtime. More...

Detailed Description

Graphs which can be updated during runtime.

Public Member Functions

GraphUpdateThreading CanUpdateAsync (GraphUpdateObject o)
 
void UpdateArea (GraphUpdateObject o)
 Updates an area using the specified #GraphUpdateObject. More...
 
void UpdateAreaInit (GraphUpdateObject o)
 May be called on the Unity thread before starting the update. More...
 
void UpdateAreaPost (GraphUpdateObject o)
 May be called on the Unity thread after executing the update. More...
 

Member Function Documentation

◆ CanUpdateAsync()

◆ UpdateArea()

void UpdateArea ( GraphUpdateObject  o)

Updates an area using the specified #GraphUpdateObject.

Notes to implementators. This function should (in order):

  1. Call o.WillUpdateNode on the GUO for every node it will update, it is important that this is called BEFORE any changes are made to the nodes.
  2. Update walkabilty using special settings such as the usePhysics flag used with the GridGraph.
  3. Call Apply on the GUO for every node which should be updated with the GUO.
  4. Update connectivity info if appropriate (GridGraphs updates connectivity, but most other graphs don't since then the connectivity cannot be recovered later).

Implemented in GridGraph, PointGraph, RecastGraph, LayerGridGraph, and NavMeshGraph.

◆ UpdateAreaInit()

void UpdateAreaInit ( GraphUpdateObject  o)

May be called on the Unity thread before starting the update.

See also
CanUpdateAsync

Implemented in GridGraph, PointGraph, RecastGraph, and NavMeshGraph.

◆ UpdateAreaPost()

void UpdateAreaPost ( GraphUpdateObject  o)

May be called on the Unity thread after executing the update.

See also
CanUpdateAsync

Implemented in GridGraph, RecastGraph, PointGraph, and NavMeshGraph.


The documentation for this interface was generated from the following file: