Protected
constructorIf 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.
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 the texture's aspect ratio, which is calculated as width / height.
Returns the height of the texture in pixels.
Returns the name of this object's type.
Returns the width of the texture in pixels.
Requests SDK to hide media picking UI.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
Requests face mesh and sets a callback to fire when it's ready.
Sets a callback to fire when a file is picked through media picking UI.
Requests SDK to show media picking UI.
Base class for Texture Providers based on selectable media.