A* Pathfinding Project  4.1.3
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events Macros Groups Pages
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.
 
void OnEnterPool ()
 
void Submit ()
 
- Public Member Functions inherited from IAstarPooledObject
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.
 

Properties

RetainedGizmos.Builder builder [get, set]
 
RetainedGizmos.Hasher hasher [get, 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

Member Function Documentation

void System.IDisposable. Dispose ( )
private
void DrawConnection ( GraphNode  other)
private
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 
)
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.

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
void OnEnterPool ( )
void Submit ( )

Member Data Documentation

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

Property Documentation

RetainedGizmos.Builder builder
getset
RetainedGizmos.Hasher hasher
getset

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