ES2.SaveImage

public static void SaveImage(Texture2D image, string path)

Parameters

path

The path of the PNG file we want to create. Should have the extension .png.

Description

Saves a Texture2D as a PNG file.

Note: The file must have the extension ‘.png’.

C#

JS