flutter-unity-view-widget icon indicating copy to clipboard operation
flutter-unity-view-widget copied to clipboard

Could not open AR camera

Open GubendranVins opened this issue 3 years ago • 3 comments

Hi,

  We have tried the flutter integration with our unity ar foundation project I have analyzed and fixed the build issue which i have posted the query in yesterday.

We have got another issue AR camera could not open it shows only black screen.

Please help us to fix the above issue

Thanks in advance.

GubendranVins avatar Jun 16 '22 14:06 GubendranVins

I had this problem, but it was a problem with my Unity project, not the flutter package (if I remember correctly I wasn't initialising my AR manager or AR session or something)

Try this:

  • Open Unity
  • Connect an Android device
  • Open build settings
  • Make sure Android platform is selected
  • make sure the device is selected as the 'Run device'
  • select Build and Run to build your Unity project to the device

If you have the same problem (only shows a black screen) this is not an issue with this package - it is a problem with your Unity project.

jamesncl avatar Jun 19 '22 12:06 jamesncl

@GubendranVins Could you please try out the new unitypackage v2 which I have updated now? There're some Android fixes in it for AR.

Ahmadre avatar Jun 19 '22 22:06 Ahmadre

Please consider using Unity 2022.* and our latest version

Ahmadre avatar Jun 24 '22 15:06 Ahmadre

@GubendranVins When you run unity, if you require permission for the camera, you may only see a black screen. Request all permissions before running unity. Good luck.

hu1won avatar Nov 29 '22 09:11 hu1won