Свойство | Тип | Описание | |
---|---|---|---|
callbacks | OnPathDelegate[] | ||
chosenTarget | int | ||
heuristicMode | HeuristicMode | ||
nodePaths | List |
||
originalTargetPoints | Vector3[] | ||
pathsForAll | bool | ||
targetNodes | GraphNode[] | ||
targetPoints | Vector3[] | ||
targetsFound | bool[] | ||
vectorPaths | List |
Свойство | Тип | Описание | |
---|---|---|---|
targetNodeCount | int |
Метод | Описание | |
---|---|---|
ChooseShortestPath ( ) : void |
Set chosenTarget to the index of the shortest path
|
|
Construct ( Array startPoints, Vector3 target, Array callbackDelegates, OnPathDelegate callback = null ) : |
||
Construct ( Vector3 start, Array targets, Array callbackDelegates, OnPathDelegate callback = null ) : |
||
MultiTargetPath ( ) : UnityEngine |
Default constructor. Do not use this. Instead use the static Construct method which can handle path pooling.
|
|
RecalculateHTarget ( bool firstTime ) : void | ||
ResetFlags ( ) : void |
Reset flag1 on all nodes after the pathfinding has completed (no matter if an error occurs or if the path is canceled)
|
|
SetPathParametersForReturn ( int target ) : void |
Метод | Описание | |
---|---|---|
CalculateStep ( long targetTick ) : void | ||
Cleanup ( ) : void | ||
FoundTarget ( |
||
Initialize ( ) : void | ||
OnEnterPool ( ) : void | ||
Prepare ( ) : void | ||
RebuildOpenList ( ) : void | ||
Reset ( ) : void | ||
ReturnPath ( ) : void | ||
Setup ( Vector3 start, Array targets, Array callbackDelegates, OnPathDelegate callback ) : void | ||
Trace ( PathNode node ) : void |
Метод | Описание | |
---|---|---|
DebugString ( PathLog logMode ) : string |
protected CalculateStep ( long targetTick ) : void | ||
targetTick | long | |
Результат | void |
public static Construct ( Array startPoints, Vector3 target, Array callbackDelegates, OnPathDelegate callback = null ) : |
||
startPoints | Array | |
target | Vector3 | |
callbackDelegates | Array | |
callback | OnPathDelegate | |
Результат |
public static Construct ( Vector3 start, Array targets, Array callbackDelegates, OnPathDelegate callback = null ) : |
||
start | Vector3 | |
targets | Array | |
callbackDelegates | Array | |
callback | OnPathDelegate | |
Результат |
protected FoundTarget ( |
||
nodeR | ||
i | int | |
Результат | void |
public RecalculateHTarget ( bool firstTime ) : void | ||
firstTime | bool | |
Результат | void |
public SetPathParametersForReturn ( int target ) : void | ||
target | int | |
Результат | void |
protected Setup ( Vector3 start, Array targets, Array callbackDelegates, OnPathDelegate callback ) : void | ||
start | Vector3 | |
targets | Array | |
callbackDelegates | Array | |
callback | OnPathDelegate | |
Результат | void |