A* Pathfinding Project  4.3.7
The A* Pathfinding Project for Unity 3D
GraphGizmoHelper Class Reference

Public Member Functions

 GraphGizmoHelper ()
 
void DrawConnections (GraphNode node)
 
void DrawTriangles (Vector3[] vertices, Color[] colors, int numTriangles)
 
void DrawWireTriangle (Vector3 a, Vector3 b, Vector3 c, Color color)
 
void DrawWireTriangles (Vector3[] vertices, Color[] colors, int numTriangles)
 
void Init (AstarPath active, RetainedGizmos.Hasher hasher, RetainedGizmos gizmos, RetainedGizmos.RedrawScope redrawScope)
 
Color NodeColor (GraphNode node)
 Color to use for gizmos. More...
 
void OnEnterPool ()
 

Static Public Member Functions

static bool InSearchTree (GraphNode node, PathHandler handler, ushort pathID)
 Returns if the node is in the search tree of the path. More...
 

Public Attributes

CommandBuilder builder
 

Properties

RetainedGizmos.Hasher hasher [get, private set]
 

Private Member Functions

void System.IDisposable. Dispose ()
 
void DrawConnection (GraphNode other)
 

Private Attributes

PathHandler debugData
 
float debugFloor
 
GraphDebugMode debugMode
 
ushort debugPathID
 
float debugRoof
 
readonly System.Action< GraphNodedrawConnection
 
Color drawConnectionColor
 
Vector3 drawConnectionStart
 
bool showSearchTree
 

Constructor & Destructor Documentation

◆ GraphGizmoHelper()

Member Function Documentation

◆ Dispose()

void System.IDisposable. Dispose ( )
private

◆ DrawConnection()

void DrawConnection ( GraphNode  other)
private

◆ DrawConnections()

void DrawConnections ( GraphNode  node)

◆ DrawTriangles()

void DrawTriangles ( Vector3 []  vertices,
Color []  colors,
int  numTriangles 
)

◆ DrawWireTriangle()

void DrawWireTriangle ( Vector3  a,
Vector3  b,
Vector3  c,
Color  color 
)

◆ DrawWireTriangles()

void DrawWireTriangles ( Vector3 []  vertices,
Color []  colors,
int  numTriangles 
)

◆ Init()

void Init ( AstarPath  active,
RetainedGizmos.Hasher  hasher,
RetainedGizmos  gizmos,
RetainedGizmos.RedrawScope  redrawScope 
)

◆ InSearchTree()

static bool InSearchTree ( GraphNode  node,
PathHandler  handler,
ushort  pathID 
)
static

Returns if the node is in the search tree of the path.

Only guaranteed to be correct if path is the latest path calculated. Use for gizmo drawing only.

◆ NodeColor()

Color NodeColor ( GraphNode  node)

Color to use for gizmos.

Returns a color to be used for the specified node with the current debug settings (editor only).

Version
Since 3.6.1 this method will not handle null nodes

◆ OnEnterPool()

void OnEnterPool ( )

Implements IAstarPooledObject.

Member Data Documentation

◆ builder

CommandBuilder builder

◆ debugData

PathHandler debugData
private

◆ debugFloor

float debugFloor
private

◆ debugMode

GraphDebugMode debugMode
private

◆ debugPathID

ushort debugPathID
private

◆ debugRoof

float debugRoof
private

◆ drawConnection

readonly System.Action<GraphNode> drawConnection
private

◆ drawConnectionColor

Color drawConnectionColor
private

◆ drawConnectionStart

Vector3 drawConnectionStart
private

◆ showSearchTree

bool showSearchTree
private

Property Documentation

◆ hasher

RetainedGizmos.Hasher hasher
getprivate set

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