A* Pathfinding Project  3.6.8
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events Macros Groups Pages
PathTypesDemo Class Reference

Demos different path types. More...

Detailed Description

Demos different path types.

This script is an example script demoing a number of different path types included in the project. Since only the Pro version has access to many path types, it is only included in the pro version

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 Member Functions

void ClearPrevious ()
 Destroys all previous render objects.
 
IEnumerator Constant ()
 
void DemoPath ()
 Starts a path specified by PathTypesDemo.activeDemo.
 
void OnApplicationQuit ()
 Clears renders on application quit.
 
void OnGUI ()
 Draw some helpful gui.
 
void OnPathComplete (Path p)
 Get the path back.
 

Public Attributes

int activeDemo = 0
 
RichAI[] agents
 
float aimStrength = 0
 
Transform end
 
Material lineMat
 
float lineWidth
 
Vector3 pathOffset
 
int searchLength = 1000
 
int spread = 100
 
Material squareMat
 
Transform start
 

Private Member Functions

void Update ()
 

Private Attributes

FloodPath lastFlood = null
 
Path lastPath = null
 
List< GameObject > lastRender = new List<GameObject>()
 
Vector2 mouseDragStart
 
float mouseDragStartTime
 
List< Vector3 > multipoints = new List<Vector3>()
 

Member Function Documentation

void ClearPrevious ( )

Destroys all previous render objects.

IEnumerator Constant ( )
void DemoPath ( )

Starts a path specified by PathTypesDemo.activeDemo.

void OnApplicationQuit ( )

Clears renders on application quit.

void OnGUI ( )

Draw some helpful gui.

void OnPathComplete ( Path  p)

Get the path back.

void Update ( )
private

Member Data Documentation

int activeDemo = 0
RichAI [] agents
float aimStrength = 0
Transform end
FloodPath lastFlood = null
private
Path lastPath = null
private
List<GameObject> lastRender = new List<GameObject>()
private
Material lineMat
float lineWidth
Vector2 mouseDragStart
private
float mouseDragStartTime
private
List<Vector3> multipoints = new List<Vector3>()
private
Vector3 pathOffset
int searchLength = 1000
int spread = 100
Material squareMat
Transform start

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