40414243444546474849
Map map = editor.getCurrentMap(); int layerIndex = editor.getCurrentLayerIndex(); int totalLayers = map.getTotalLayers(); if (layerIndex < totalLayers - 1) { map.swapLayerUp(layerIndex); editor.setCurrentLayer(layerIndex + 1); } } }