Demos different path types.
More...
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
- See also
- Pathfinding.ABPath
-
Pathfinding.MultiTargetPath
-
Pathfinding.ConstantPath
-
Pathfinding.FleePath
-
Pathfinding.RandomPath
-
Pathfinding.FloodPath
-
Pathfinding.FloodPathTracer
◆ DemoMode
Enumerator |
---|
ABPath | |
MultiTargetPath | |
RandomPath | |
FleePath | |
ConstantPath | |
FloodPath | |
FloodPathTracer | |
◆ ClearPrevious()
Destroys all previous render objects.
◆ DemoConstantPath()
IEnumerator DemoConstantPath |
( |
| ) |
|
◆ DemoMultiTargetPath()
IEnumerator DemoMultiTargetPath |
( |
| ) |
|
|
private |
◆ DemoPath()
◆ OnDestroy()
Clears renders when the object is destroyed.
◆ OnGUI()
◆ OnPathComplete()
void OnPathComplete |
( |
Path |
p | ) |
|
Will be called when the paths have been calculated.
◆ Update()
◆ activeDemo
◆ aimStrength
◆ end
◆ lastFloodPath
◆ lastPath
◆ lastRender
List<GameObject> lastRender = new List<GameObject>() |
|
private |
◆ lineMat
Material used for rendering paths.
◆ lineWidth
◆ multipoints
List<Vector3> multipoints = new List<Vector3>() |
|
private |
◆ pathOffset
Offset from the real path to where it is rendered.
Used to avoid z-fighting
◆ searchLength
◆ spread
◆ squareMat
◆ start
The documentation for this class was generated from the following file:
- /Users/arong/Unity/a-pathfinding-project/Assets/AstarPathfindingProject/ExampleScenes/Example8_PathTypes/PathTypesDemo.cs