Hi,
The issue is that when you're building just the samples, the camera permissions are not requested anymore. The code that does this can be found in the MenuController.cs script, so if the Main Menu scene is missing, the camera cannot be accessed.
Best regards,
Alexandru
Dragging the menu controller onto a gameobject did fix this. Thank you.
Attaching the menu controller to what game object worked?
Hi,
This shouldn't be needed anymore in the latest 9.0.0 release.
Best regards,
Alexandru
Hi,
Could you please try the ready-made project included in the package and check if image tracking is working there?
Thank you,
Alexandru
No even a build of that app shows a black screen. I am using Unity 2019.2.17.
One warning shown is:
Assets\Wikitude\Samples\Scripts\ContinuousRecognitionController.cs(29,17): warning CS0114: 'ContinuousRecognitionController.OnInitializationError(Error)' hides inherited member 'SampleController.OnInitializationError(Error)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword.
Camera turns on for Plane tracking and some other features.
Hi,
So, if I understand correctly, the camera is working fine in the Plane Detection samples, but not in the Image Tracking samples?
Best regards,
Alexandru
Yes, exactly
Hi,
Is this issue still happening on Android, as the original post mentions, or is it iOS? Could you please tell us on which devices it is happening, and if you've tested on multiple devices? Is the problem reproducible on all of them, or just on some?
Additionally, could you please send us the logs from the device when the issue is occurring, so that we have more information to work with?
Thank you,
Alexandru
Yes, it's an android device ( Nokia 6.1 plus ). Will try it on other devices and update you with log if the same problem persists.
I get the same error but the .apk file does not open at all in my device. I am using:
Wikitude_Unity_9-0-0_9-0-0_2020_03_31_00_16_22
Unity 2019.3.12f1
Device: Huawei Honor 7 Lite
Platform: Android 7.0
I attacked the error I am getting inside Unity.
@Abhishek: did you manage to try it on other devices? Could you still reproduce it there, or is it just happening on the Nokia 6.1 plus?
@Elli: it seems like you have a problem either with your project or with your Unity / Android SDK installation in general. Is this happening with the project bundled inside the downloaded zip, or did you create a new Unity project and imported the .unitypackage into it manually?
Kevin R
Hello,
So I have a unity project in which I dragged a WikitudeCamera (deleted the original one that comes with a scene) and and ImageTracker. That's all there is in the scene. If I run it in unity with a webcam, it works perfectly. The image gets detected and the model gets show accordingly. But when I build for Android using my phone, I only get a black screen and nothing else.
Building and running the main menu scene from the example scenes does work. But only when I go from Menu Scene to any other scene, only then it works. If I build any example scene seperately, I get the same result. A black screen,
I have looked around on the forum trying to find a solution, but so far I haven't found one that works.