|
static void | RenderGrid (int[,] grid, MMTilemapGeneratorLayer layer, bool slowRender=false, float slowRenderDuration=1f, MMTweenType slowRenderTweenType=null, MonoBehaviour slowRenderSupport=null) |
| Renders the specified grid on the specified tilemap, with optional slow mode (only works at runtime) More...
|
|
static IEnumerator | SlowRenderGrid (int[,] grid, Tilemap tilemap, TileBase tile, float slowRenderDuration, MMTweenType slowRenderTweenType, int frameRate) |
| Renders a grid chunk by chunk - runtime only More...
|
|
static int | TotalFilledBlocks (int[,] grid) |
| Returns the total amount of filled blocks in a grid More...
|
|
static Vector3Int | ComputeOffset (int width, int height) |
| Determines the offset to apply to a grid to have it centered More...
|
|
static void | ClearTilemap (Tilemap tilemap) |
| Clears and refreshes an entire tilemap More...
|
|
◆ ClearTilemap()
static void MoreMountains.Tools.MMTilemapGridRenderer.ClearTilemap |
( |
Tilemap |
tilemap | ) |
|
|
static |
Clears and refreshes an entire tilemap
- Parameters
-
◆ ComputeOffset()
static Vector3Int MoreMountains.Tools.MMTilemapGridRenderer.ComputeOffset |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
static |
Determines the offset to apply to a grid to have it centered
- Parameters
-
- Returns
◆ RenderGrid()
static void MoreMountains.Tools.MMTilemapGridRenderer.RenderGrid |
( |
int |
grid[,], |
|
|
MMTilemapGeneratorLayer |
layer, |
|
|
bool |
slowRender = false , |
|
|
float |
slowRenderDuration = 1f , |
|
|
MMTweenType |
slowRenderTweenType = null , |
|
|
MonoBehaviour |
slowRenderSupport = null |
|
) |
| |
|
static |
Renders the specified grid on the specified tilemap, with optional slow mode (only works at runtime)
- Parameters
-
grid | |
tilemap | |
tile | |
slowRender | |
slowRenderDuration | |
slowRenderTweenType | |
slowRenderSupport | |
◆ SlowRenderGrid()
static IEnumerator MoreMountains.Tools.MMTilemapGridRenderer.SlowRenderGrid |
( |
int |
grid[,], |
|
|
Tilemap |
tilemap, |
|
|
TileBase |
tile, |
|
|
float |
slowRenderDuration, |
|
|
MMTweenType |
slowRenderTweenType, |
|
|
int |
frameRate |
|
) |
| |
|
static |
Renders a grid chunk by chunk - runtime only
- Parameters
-
grid | |
tilemap | |
tile | |
slowRenderDuration | |
slowRenderTweenType | |
frameRate | |
- Returns
◆ TotalFilledBlocks()
static int MoreMountains.Tools.MMTilemapGridRenderer.TotalFilledBlocks |
( |
int |
grid[,] | ) |
|
|
static |
Returns the total amount of filled blocks in a grid
- Parameters
-
- Returns
The documentation for this class was generated from the following file: