How to save tilemap to jpg?

Is there some way to save a tilemap tiles into image like jpg?
4450399--407950--upload_2019-4-20_10-59-20.png
Like this selecting blocks, I want to save it into image…

I don’t think there is a way to do that.

The best way would be to use an image editor and make a montage of your sprites reproducing the pattern on a transparent background.

Maybe this proves useful:

Not what you asked for but happened to be working with it… maybe it will be of more than 0 use.

public void WriteSpritetoPNG(Sprite image)
    {
        var Bytes = image.texture.EncodeToPNG();
        File.WriteAllBytes(Application.persistentDataPath + "/" + image.name + ".png", Bytes);
    }

I made this asset to convert tilemaps as pngs

https://github.com/leocub58/Tilemap-to-PNG-Unity

6 Likes

LIFE SAVER!!!

Please use the Like button to show appreciation so you don’t necro threads for everyone.

Thanks.