AudioAsset
Ease
FastString
FontAsset
NineSlice
PackedSprite
PackedSpriteID
RB
   HardwareSettings
   IRetroBlitGame
RBAsset
Rect2i
ShaderAsset
SoundReference
SpriteGrid
SpriteSheetAsset
TMXMapAsset
   TMXLayer
   TMXLayerLoadState
   TMXObject
   TMXObjectGroup
   TMXProperties
Vector2i

RB.MapClear

Method  -  Static

public static void MapClear()
public static void MapClear(int layer)

Parameters

layer int Layer to clear

Returns

Nothing.

Description

Clear tilemap, on all layers, or only on the specified layer. This removes all tile information, and all user data associated with the tiles.

Example

void Update() {
    if (gameOver) {
        RB.MapClear();
    }
}

See Docs

Features - Tilemaps