Saving and Loading Images

You can save a Texture2D as a JPG or a PNG using ES3.SaveImage.

C#

JS

You can load a JPG or PNG as a Texture2D using ES3.LoadImage.

This method also accepts a byte array for cases where you don’t need to load the image from storage.

C#

JS

C#

JS