Small sample script for placing obstacles.
More...
Small sample script for placing obstacles.
◆ PlaceObject()
◆ RemoveObject()
IEnumerator RemoveObject |
( |
| ) |
|
◆ Update()
Update is called once per frame.
◆ direct
Flush Graph Updates directly after placing.
Slower, but updates are applied immidiately
◆ go
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.
◆ issueGUOs
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