简体   繁体   中英

Unity plugin android native camera

I wrote a android plugin for processing camera preview and turn the flash on, but then I found out that for some inexplicable reason plugin does not work properly on some smartphones. That is not the flash is activated and not called handler preview. Even on different smartphones from one version of Android (4.1.3) plugin behaves differently.. what could be the causes of bug? where do dig? Please help :(

Since there are so many diffirent Camera versions and variations on Android its quite difficult to debug. However you could try and go through some of the existing plugins for using the Camera - Camera Capture Kit for Unity is a support for turning on the flash/torch and is tested on a large array of Android phones and works on both iOS and Android.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM