Feel  5.1
The best way to improve your game's feel and make it extra juicy
MoreMountains.Tools.MMTilemapGridRenderer Class Reference

Static Public Member Functions

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...
 

Member Function Documentation

◆ ClearTilemap()

static void MoreMountains.Tools.MMTilemapGridRenderer.ClearTilemap ( Tilemap  tilemap)
static

Clears and refreshes an entire tilemap

Parameters
tilemap

◆ 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
width
height
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
grid
Returns

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