Show / Hide Table of Contents

Class GridUtils

Inheritance
System.Object
GridUtils
Namespace: Edgar.Unity.Editor
Assembly: cs.temp.dll.dll
Syntax
public static class GridUtils

Methods

DrawRectangleOutline(Grid, Vector3Int, Vector3Int, Color, Vector2, Boolean, String, Boolean)

Draws an outline around the rectangle formed by the two given points.

Declaration
public static void DrawRectangleOutline(Grid grid, Vector3Int fromTile, Vector3Int toTile, Color color, Vector2 sizeModifier = null, bool addDiagonal = false, string label = null, bool isDotted = false)
Parameters
Type Name Description
Grid grid
Vector3Int fromTile

First point of the rectangle.

Vector3Int toTile

Second point of the rectangle.

Color color

Color of the outline

Vector2 sizeModifier

How much smaller should the outline be than the actual grid tiles

System.Boolean addDiagonal

Whether a diagonal should be drawn

System.String label

Optional label

System.Boolean isDotted
In This Article
Back to top Generated by DocFX