SaveGame.SaveImage

Description

Saves the texture as a image file specified by the identifier.
Please note that the Texture must have Read/Write enabled and compression disabled (set to none).

Parameters

Name Type Description Required
identifier string The identifier required
texture Texture2D The texture to save required
settings SaveGameSettings The optional settings optional

Examples

Saving Simple Image

SaveGame.Save ( "simple.png", myTexture );

Saving to Folder

SaveGame.Save ( "myFolder/simple.png", myTexture );