|
A* Pathfinding Project
3.1.4
The A* Pathfinding Project for Unity 3D
|
Small sample script for placing obstacles. More...
Inheritance diagram for ObjectPlacer:
Collaboration diagram for ObjectPlacer:Public Member Functions | |
| void | PlaceObject () |
| void | RemoveObject () |
Public Attributes | |
| bool | direct = false |
| GameObject to place. | |
| GameObject | go |
Private Member Functions | |
| void | Start () |
| Flush Graph Updates directly after placing. | |
| void | Update () |
Small sample script for placing obstacles.
|
private |
Flush Graph Updates directly after placing.
Slower, but updates are applied immidiately
| bool direct = false |
GameObject to place.
Make sure the layer it is in is included in the collision mask on the GridGraph settings (assuming a GridGraph)