Function GridGraph.SetGridShape

SetGridShape (InspectorGridMode shape)

Changes the grid shape.

Public
void SetGridShape (

InspectorGridMode

shape

)

Changes the grid shape.

This is equivalent to changing the 'shape' dropdown in the grid graph inspector.

Calling this method will set isometricAngle, aspectRatio, uniformEdgeCosts and neighbours to appropriate values for that shape.

Note

Setting the shape to InspectorGridMode.Advanced does not do anything except set the inspectorGridMode field.