Small sample script for placing obstacles.
More...
Small sample script for placing obstacles.
|
bool | direct = false |
| Flush Graph Updates directly after placing.
|
|
GameObject | go |
| GameObject to place.
|
|
bool | issueGUOs = true |
| Issue a graph update object after placement.
|
|
|
void | Update () |
| Update is called once per frame.
|
|
Update is called once per frame.
Flush Graph Updates directly after placing.
Slower, but updates are applied immidiately
GameObject to place.
When using a Grid Graph you need to make sure the object's layer is included in the collision mask in the GridGraph settings.
Issue a graph update object after placement.
The documentation for this class was generated from the following file:
- /Users/arong/Unity/a-pathfinding-project/Assets/AstarPathfindingProject/ExampleScenes/ExampleScripts/ObjectPlacer.cs