Function GridGraph.SetGridShape
void SetGridShape (
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.