Publisher | harhogefoo |
---|---|
File size | 26.14kB |
Number of files | 6 |
Latest version | 1 |
Latest release date | 2016-08-15 05:02:30 |
First release date | 2016-08-05 06:45:23 |
Supported Unity versions | 2018.4.2 or higher |
AndroidCamAll is a plugin that helps you to integrate the Take Photo and Open Gallery with Image Cropping.
You can use to select an image form Android Gallery or taken photo image
and import these into Unity for usage as a texture.
Device which Operation Checked
Nexus 5 (Android5.1.1)
This Asset composed by four functions.
Usage example:
・Get image from Gallery
hgfg.NativeCameraShotAndGallery.AndroidOpenGallery.OpenPhotoGallery ((Texture2D tex) => {
Debug.Log(tex);
});
・Get Image from Gallery with Cropping.
hgfg.NativeCameraShotAndGallery.AndroidOpenGallery.OpenPhotoGalleryWithCrop ((Texture2D tex) => {
Debug.Log(tex);
});
・Get image from Camera
hgfg.NativeCameraShotAndGallery.AndroidCameraShot.TakePhoto ((Texture2D tex) => {
Debug.Log(tex);
});
・Get image from Camera with Cropping.
hgfg.NativeCameraShotAndGallery.AndroidCameraShot.TakePhotoWithCrop ((Texture2D tex) => {
Debug.Log(tex);
});