A* Pathfinding Project  4.3.5
The A* Pathfinding Project for Unity 3D
ObjectPlacer Class Reference

Small sample script for placing obstacles. More...

Detailed Description

Small sample script for placing obstacles.

Public Member Functions

void PlaceObject ()
 
IEnumerator RemoveObject ()
 

Public Attributes

bool direct = false
 Flush Graph Updates directly after placing. More...
 
GameObject go
 GameObject to place. More...
 
bool issueGUOs = true
 Issue a graph update object after placement. More...
 

Private Member Functions

void Update ()
 Update is called once per frame. More...
 

Member Function Documentation

◆ PlaceObject()

void PlaceObject ( )

◆ RemoveObject()

IEnumerator RemoveObject ( )

◆ Update()

void Update ( )
private

Update is called once per frame.

Member Data Documentation

◆ direct

bool direct = false

Flush Graph Updates directly after placing.

Slower, but updates are applied immidiately

◆ go

GameObject 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

bool issueGUOs = true

Issue a graph update object after placement.


The documentation for this class was generated from the following file: