Exporting created image?

Hey all, I’m working on a small side project but I am having a little trouble finding a guide on some image exporting.

I’m creating my own card maker for for a card game I am working on and I want to be able to export the entire image. So after I set things like the card image, stats, cost, etc, I want to create a single image as though it were 1 card by itself, all parts in one. Gonna turn them into physical cards so it has to be a single image per card.

I’ve found a few tutorials for how to export the individual images, but having a hard time finding how to export everything together. Any help at all on this one would be great! I’m sure I am just using the wrong word or something basic like that in my google searches.

create a texture of everything combined with texture2d.setpixels, then texture2d.apply(), then texture2d.encodetopng, then file.writeallbytes to save the png