layerOrNull

fun TiledMap.layerOrNull(layerName: String): MapLayer?

Extension method to retrieve a MapLayer of a TiledMap. If the layer does not exist then this method returns null.

Parameters

layerName

name of MapLayer