Méthode |
Description |
|
Awake ( ) : void |
This will be called on the same time as Awake on the gameObject which the AstarPath script is attached to. (remember, not in the editor) Use this for any initialization code which can't be placed in Scan |
|
CountNodes ( ) : int |
|
|
CreateNodes ( int number ) : void |
|
|
DeserializeExtraInfo ( GraphSerializationContext ctx ) : void |
|
|
GetNearest ( Vector3 position ) : NNInfo |
|
|
GetNearest ( Vector3 position, NNConstraint constraint ) : NNInfo |
|
|
GetNearest ( Vector3 position, NNConstraint constraint, GraphNode hint ) : NNInfo |
|
|
GetNearestForce ( Vector3 position, NNConstraint constraint ) : NNInfo |
Returns the nearest node to a position using the specified constraint. |
|
GetNodes ( GraphNodeDelegateCancelable del ) : void |
|
|
InSearchTree ( GraphNode node, Path path ) : bool |
|
|
NodeColor ( GraphNode node, PathHandler data ) : Color |
|
|
OnDestroy ( ) : void |
|
|
OnDrawGizmos ( bool drawNodes ) : void |
|
|
PostDeserialization ( ) : void |
|
|
RelocateNodes ( Matrix4x4 oldMatrix, Matrix4x4 newMatrix ) : void |
|
|
SafeOnDestroy ( ) : void |
|
|
ScanGraph ( ) : void |
Consider using AstarPath.Scan () instead since this function might screw things up if there is more than one graph. This function does not perform all necessary postprocessing for the graph to work with pathfinding (e.g flood fill). See the source of the AstarPath.Scan function to see how it can be used. In almost all cases you should use AstarPath.Scan instead. |
|
ScanInternal ( ) : void |
|
|
ScanInternal ( OnScanStatus statusCallback ) : void |
Scans the graph, called from AstarPath.ScanInternal Override this function to implement custom scanning logic The statusCallback may be optionally called to show progress info in the editor |
|
SerializeExtraInfo ( GraphSerializationContext ctx ) : void |
|
|
SetMatrix ( Matrix4x4 m ) : void |
|
|