Class PathTypesDemo Extends MonoBehaviour

Public

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 Methods

DemoConstantPath ()
Public
OnGUI ()

Draw some helpful gui.

Public
OnPathComplete (p)

Will be called when the paths have been calculated.

Public

Public Variables

activeDemo
Public
aimStrength
Public
end

Target point of paths.

Public
lineMat

Material used for rendering paths.

Public
lineWidth
Public
pathOffset

Offset from the real path to where it is rendered.

Public
searchLength
Public
spread
Public
squareMat

Material used for rendering result of the ConstantPath.

Public
start

Start of paths.

Public

Public Enums

DemoMode
Public

Private/Protected Members

ClearPrevious ()

Destroys all previous render objects.

Private
DemoMultiTargetPath ()
Private
DemoPath ()

Starts a path specified by PathTypesDemo.activeDemo.

Private
lastFloodPath
Private
lastPath
Private
lastRender
Private
multipoints
Private
OnDestroy ()

Clears renders when the object is destroyed.

Private
Update ()
Private