Declaration
public static void LoadPhoto(Action<Texture2D, string, long> callback, int maxSize = 1024)
Parameters
Parameter Name | Parameter Description |
---|---|
callback | The callback function triggered after the album is successfully opened. The function will return the texture, the path to the image in the album, and the image size. |
maxSize | The maximum resolution of the image. If the resolution of the image to be loaded exceeds this value, it will be reduced to this value. |
Description
Opens the album and asks the user to select an image from the album.