SaveGame.LoadImage

Description

Load the texture from the specified image file.

Parameters

Name Type Description Required
identifier string The identifier required
settings SaveGameSettings The optional settings optional

Returns

The loaded texture if the image exists, otherwise returns null.

Examples

Loading Simple Image

Texture2D texture = SaveGame.LoadImage ( "simple.png" );

Loading from Folder

Texture2D texture = SaveGame.LoadImage ( "myFolder/simple.png" );