A* Pathfinding Project  3.8.5
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events Macros Groups Pages
ObjectPlacer Class Reference

Small sample script for placing obstacles. More...

Detailed Description

Small sample script for placing obstacles.

Public Member Functions

void PlaceObject ()
 
void RemoveObject ()
 

Public Attributes

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

Private Member Functions

void Update ()
 Update is called once per frame.
 

Member Function Documentation

void PlaceObject ( )
void RemoveObject ( )
void Update ( )
private

Update is called once per frame.

Member Data Documentation

bool direct = false

Flush Graph Updates directly after placing.

Slower, but updates are applied immidiately

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.

bool issueGUOs = true

Issue a graph update object after placement.


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