If enabled, the image picker UI will be shown automatically when the Lens starts.
If set to true, MediaPickerTextureProvider will request media picker UI automatically during loading.
If set to true, MediaPickerTextureProvider will provide a proper texture transform for image with face(s), that will "zoom" UVs to the first found face on the image.
If enabled, the selected image will be cropped to only show the face region.
The FaceTextureProvider used to provide the face texture.
Returns underlying TextureProvider for the last selected media file. If the last media file was not image with at least one face, null is returned.
Readonly
imageReturns underlying TextureProvider for the last selected media file. If the last media file was not image, null is returned.
Readonly
isReturns true if an image is selected, or a video file has been loaded and is ready for decoding, false otherwise.
MediaPickerTextureProvider will allow users to select only images with detected faces through media picker UI. See also "cropFace" option.
MediaPickerTextureProvider will allow users to select all images files through media picker UI.
MediaPickerTextureProvider will allow users to select video files through media picker UI.
Readonly
videoReturns underlying VideoTextureProvider for the last selected media file. If the last media file was not video, null is returned.
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
Controls the face image picker texture resource. Can be accessed through Texture.control on a Face Image Picker texture. For more information, see the Face Image Picker Texture guide.
Example