flutter-unity-view-widget
flutter-unity-view-widget copied to clipboard
Could not open AR camera
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.
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.
@GubendranVins Could you please try out the new unitypackage v2 which I have updated now? There're some Android fixes in it for AR.
Please consider using Unity 2022.* and our latest version
@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.