gallerySelectCallback | Callback which will be executed when select images finished. |
maxPhotoSelectNumber | The max number of images that can be selected. |
isPhotoTakingSupported | Whether the GallerySelector support photo taking. |
width | The decoding width. Use origin width if set to 0. |
height | The decoding height. Use origin height if set to 0. |
Open the GallerySelector that allows user to select images from gallery..
using UnityEngine; using UnityEngine.OpenHarmony;
public class OpenSelectorScript : MonoBehaviour { void Start() { Gallery.OpenImagesSelector((textures) => { Debug.Log($"Retrive {textures.Count} images!"); }, 9, false, 0, 0); } }