ES3.SaveImage

public static void SaveImage(Texture2D texture, string imagePath, ES3Settings settings)

Description

Saves a Texture2D as a PNG or a JPG, depending on the file extension of the supplied imagePath.

Parameters

texture The Texture2D we want to save as an image."

imagePath

The relative or absolute path of the PNG or JPG file we want to store our image to.

settings

[Optional] The settings we want to use to override the default settings.

Examples

C#

JS