|
float | costFactor = 1.0f |
| The connection will be this times harder/slower to traverse.
|
|
Transform | end |
| End position of the link.
|
|
bool | oneWay = false |
| Make a one-way connection.
|
|
|
override void | OnDisable () |
| Removes this modifier from list of active modifiers.
|
|
override void | OnEnable () |
| Adds this modifier to list of active modifiers.
|
|
|
static readonly Color | GizmosColor = new Color(206.0f/255.0f, 136.0f/255.0f, 48.0f/255.0f, 0.5f) |
|
static readonly Color | GizmosColorSelected = new Color(235.0f/255.0f, 123.0f/255.0f, 32.0f/255.0f, 1.0f) |
|
void Apply |
( |
bool |
forceNewCheck | ) |
|
void ContextApplyForce |
( |
| ) |
|
|
private |
void DrawCircle |
( |
Vector3 |
o, |
|
|
float |
r, |
|
|
int |
detail, |
|
|
Color |
col |
|
) |
| |
|
private |
void DrawGizmoBezier |
( |
Vector3 |
p1, |
|
|
Vector3 |
p2 |
|
) |
| |
|
private |
void InternalOnPostScan |
( |
| ) |
|
override void OnDisable |
( |
| ) |
|
|
protectedvirtual |
Removes this modifier from list of active modifiers.
Reimplemented from GraphModifier.
void OnDrawGizmos |
( |
bool |
selected | ) |
|
virtual void OnDrawGizmosSelected |
( |
| ) |
|
|
virtual |
override void OnEnable |
( |
| ) |
|
|
protectedvirtual |
Adds this modifier to list of active modifiers.
Reimplemented from GraphModifier.
override void OnGraphsPostUpdate |
( |
| ) |
|
|
virtual |
Called after graphs have been updated using GraphUpdateObjects.
Eventual flood filling has been done
Reimplemented from GraphModifier.
override void OnPostScan |
( |
| ) |
|
|
virtual |
Called right after all graphs have been scanned.
FloodFill and other post processing has not been done.
- Warning
- Since OnEnable and Awake are called roughly in the same time, the only way to ensure that these scripts get this call when scanning in Awake is to set the Script Execution Order for AstarPath to some time later than default time (see Edit -> Project Settings -> Script Execution Order).
- See Also
- OnLatePostScan
Reimplemented from GraphModifier.
The connection will be this times harder/slower to traverse.
Note that values lower than one will not always make the pathfinder choose this path instead of another path even though this one should lead to a lower total cost unless you also adjust the Heuristic Scale in A* Inspector -> Settings -> Pathfinding or disable the heuristic altogether.
End position of the link.
readonly Color GizmosColor = new Color(206.0f/255.0f, 136.0f/255.0f, 48.0f/255.0f, 0.5f) |
|
staticprivate |
readonly Color GizmosColorSelected = new Color(235.0f/255.0f, 123.0f/255.0f, 32.0f/255.0f, 1.0f) |
|
staticprivate |
Make a one-way connection.
bool postScanCalled = false |
|
private |
The documentation for this class was generated from the following file:
- /Users/arong/Unity/a-pathfinding-project/Assets/AstarPathfindingProject/Core/Misc/NodeLink2.cs