A* Pathfinding Project  4.3.5
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)
 
Color NodeColor (GraphNode node)
 Color to use for gizmos. More...
 
void OnEnterPool ()
 
void Submit ()
 

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...
 

Properties

RetainedGizmos.Builder builder [get, private set]
 
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
 
Pathfinding.Util.RetainedGizmos gizmos
 
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 
)

◆ 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.

◆ Submit()

void Submit ( )

Member Data Documentation

◆ 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

◆ gizmos

◆ showSearchTree

bool showSearchTree
private

Property Documentation

◆ builder

RetainedGizmos.Builder builder
getprivate set

◆ hasher

RetainedGizmos.Hasher hasher
getprivate set

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